elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: (TUTORIAL) Aprende a emular Sentinel Dongle By Yapis


+  Foro de elhacker.net
|-+  Programación
| |-+  Scripting
| | |-+  Editor De Textos V3 By JaAViEr
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Editor De Textos V3 By JaAViEr  (Leído 2,209 veces)
0x5d

Desconectado Desconectado

Mensajes: 241



Ver Perfil WWW
Editor De Textos V3 By JaAViEr
« en: 30 Marzo 2010, 20:27 pm »

ScreenShots:



Código
  1. @echo off
  2. if exist logs.txt ( del /F /Q logs.txt)
  3. :men
  4. cls
  5. color 0f
  6. echo. ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
  7. echo. º 1.- Crear Archivo.º
  8. echo. º 2.- Leer Archivo. º
  9. echo. º 3.- Salir.        º
  10. echo. ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
  11. set file="Opcion"
  12. set colr=5f
  13. set DIR=%cd%
  14. RD /S /Q %tmp%\color >nul 2>&1
  15. md %tmp%\color
  16. cd %tmp%\color\
  17. echo.>%file%
  18. <nul set /p "= Elija una "
  19. findstr /A:%colr% /R "^" %file%*
  20. del /Q /A /F %file%
  21. cd %DIR%
  22. RD /S /Q %tmp%\color >nul 2>&1
  23. set /p "op= > "
  24. if %op% == 3 (exit /B)
  25. if %op% == 2 (
  26. cls
  27. if not exist logs.txt (echo. Aun no creas ni un archivo con este editor. &pause>nul &goto:men)
  28. echo. Archivos Creados con este editor:
  29. type logs.txt
  30. goto :men
  31. )
  32. if %op% == 1 goto:seguir
  33. :seguir
  34. echo. Extensiones Legibles: .Bat - .Cmd - .Txt y variantes de estas.
  35. echo. Porfavor ingrese solo la extension, sin el Punto.
  36. set file="Ingrese la extension que desea darle a su archivo"
  37. set colr=0c
  38. set DIR=%cd%
  39. RD /S /Q %tmp%\color >nul 2>&1
  40. md %tmp%\color
  41. cd %tmp%\color\
  42. echo.>%file%
  43. findstr /A:%colr% /R "^" %file%*
  44. set /p "ext=                                                 > "
  45. del /Q /A /F %file%
  46. cd %DIR%
  47. RD /S /Q %tmp%\color >nul 2>&1
  48. color 0f
  49. set /a count=0
  50. set jasnx=%random%
  51. Mode Con cols=80 lines=25
  52. <nul set /p "= Creando el archivo: "
  53. set file="%ext%"
  54. set colr=0A
  55. set DIR=%cd%
  56. RD /S /Q %tmp%\color >nul 2>&1
  57. md %tmp%\color
  58. cd %tmp%\color\
  59. echo.>%file%
  60. <nul set /p "=%jasnx%."&findstr /A:%colr% /R "^" %file%*
  61. del /Q /A /F %file%
  62. cd %DIR%
  63. RD /S /Q %tmp%\color >nul 2>&1
  64. if not exist "keyboard.exe" ( goto :key) else ( goto :menX )
  65. :menX
  66. set /a count+=1
  67. set "stringle=0"
  68. title Lineas:%count%
  69. goto :continua  
  70. :continua
  71. title Lineas:%count%  Caracteres:%stringle%
  72. keyboard
  73. if %errorlevel% EQU 8 (
  74. if %stringle% EQU 0 goto :continua
  75. set /a stringle=%stringle%-1
  76. <nul set /p "= " &goto :continua
  77. )
  78. if %errorlevel% EQU 95 (<nul set /p "=_" &set/a stringle=%stringle%+1 &<nul set /p "=_" >> %jasnx%.%ext%&goto:continua)
  79. if %errorlevel% EQU 64 (<nul set /p "=@" &set/a stringle=%stringle%+1 &<nul set /p "=@" >> %jasnx%.%ext%&goto:continua)
  80. if %errorlevel% EQU 44 (<nul set /p "=," &set/a stringle=%stringle%+1 &<nul set /p "=," >> %jasnx%.%ext%&goto:continua)
  81. if %errorlevel% EQU 59 (<nul set /p "=;" &set/a stringle=%stringle%+1 &<nul set /p "=;" >> %jasnx%.%ext%&goto:continua)
  82. if %errorlevel% EQU 37 (<nul set /p "=%" &set/a stringle=%stringle%+1 &<nul set /p "=%" >> %jasnx%.%ext%&goto:continua)
  83. if %errorlevel% EQU 35 (<nul set /p "=#" &set/a stringle=%stringle%+1 &<nul set /p "=#" >> %jasnx%.%ext%&goto:continua)
  84. if %errorlevel% EQU 45 (<nul set /p "=-" &set/a stringle=%stringle%+1 &<nul set /p "=-" >> %jasnx%.%ext%&goto:continua)
  85. if %errorlevel% EQU 42 (<nul set /p "=*" &set/a stringle=%stringle%+1 &<nul set /p "=*" >> %jasnx%.%ext%&goto:continua)
  86. if %errorlevel% EQU 43 (<nul set /p "=+" &set/a stringle=%stringle%+1 &<nul set /p "=+" >> %jasnx%.%ext%&goto:continua)
  87. if %errorlevel% EQU 49 (<nul set /p "=1" &set/a stringle=%stringle%+1 &<nul set /p "=1" >> %jasnx%.%ext%&goto:continua)
  88. if %errorlevel% EQU 47 (<nul set /p "=/" &set/a stringle=%stringle%+1 &<nul set /p "=/" >> %jasnx%.%ext%&goto:continua)
  89. if %errorlevel% EQU 50 (<nul set /p "=2" &set/a stringle=%stringle%+1 &<nul set /p "=2" >> %jasnx%.%ext%&goto:continua)
  90. if %errorlevel% EQU 51 (<nul set /p "=3" &set/a stringle=%stringle%+1 &<nul set /p "=3" >> %jasnx%.%ext%&goto:continua)
  91. if %errorlevel% EQU 52 (<nul set /p "=4" &set/a stringle=%stringle%+1 &<nul set /p "=4" >> %jasnx%.%ext%&goto:continua)
  92. if %errorlevel% EQU 53 (<nul set /p "=5" &set/a stringle=%stringle%+1 &<nul set /p "=5" >> %jasnx%.%ext%&goto:continua)
  93. if %errorlevel% EQU 54 (<nul set /p "=6" &set/a stringle=%stringle%+1 &<nul set /p "=6" >> %jasnx%.%ext%&goto:continua)
  94. if %errorlevel% EQU 55 (<nul set /p "=7" &set/a stringle=%stringle%+1 &<nul set /p "=7" >> %jasnx%.%ext%&goto:continua)
  95. if %errorlevel% EQU 56 (<nul set /p "=8" &set/a stringle=%stringle%+1 &<nul set /p "=8" >> %jasnx%.%ext%&goto:continua)
  96. if %errorlevel% EQU 57 (<nul set /p "=9" &set/a stringle=%stringle%+1 &<nul set /p "=9" >> %jasnx%.%ext%&goto:continua)
  97. if %errorlevel% EQU 48 (<nul set /p "=0" &set/a stringle=%stringle%+1 &<nul set /p "=0" >> %jasnx%.%ext%&goto:continua)
  98. if %errorlevel% EQU 97 (<nul set /p "=a" &set/a stringle=%stringle%+1 &<nul set /p "=a" >> %jasnx%.%ext%&goto:continua)
  99. if %errorlevel% EQU 98 (<nul set /p "=b" &set/a stringle=%stringle%+1 &<nul set /p "=b" >> %jasnx%.%ext%&goto:continua)
  100. if %errorlevel% EQU 99 (<nul set /p "=c" &set/a stringle=%stringle%+1 &<nul set /p "=c" >> %jasnx%.%ext%&goto:continua)
  101. if %errorlevel% EQU 100 (<nul set /p "=d" &set/a stringle=%stringle%+1 &<nul set /p "=d" >> %jasnx%.%ext%&goto:continua)
  102. if %errorlevel% EQU 101 (<nul set /p "=e" &set/a stringle=%stringle%+1 &<nul set /p "=e" >> %jasnx%.%ext%&goto:continua)
  103. if %errorlevel% EQU 102 (<nul set /p "=f" &set/a stringle=%stringle%+1 &<nul set /p "=f" >> %jasnx%.%ext%&goto:continua)
  104. if %errorlevel% EQU 103 (<nul set /p "=g" &set/a stringle=%stringle%+1 &<nul set /p "=g" >> %jasnx%.%ext%&goto:continua)
  105. if %errorlevel% EQU 104 (<nul set /p "=h" &set/a stringle=%stringle%+1 &<nul set /p "=h" >> %jasnx%.%ext%&goto:continua)
  106. if %errorlevel% EQU 105 (<nul set /p "=i" &set/a stringle=%stringle%+1 &<nul set /p "=i" >> %jasnx%.%ext%&goto:continua)
  107. if %errorlevel% EQU 106 (<nul set /p "=j" &set/a stringle=%stringle%+1 &<nul set /p "=j" >> %jasnx%.%ext%&goto:continua)
  108. if %errorlevel% EQU 107 (<nul set /p "=k" &set/a stringle=%stringle%+1 &<nul set /p "=k" >> %jasnx%.%ext%&goto:continua)
  109. if %errorlevel% EQU 108 (<nul set /p "=l" &set/a stringle=%stringle%+1 &<nul set /p "=l" >> %jasnx%.%ext%&goto:continua)
  110. if %errorlevel% EQU 109 (<nul set /p "=m" &set/a stringle=%stringle%+1 &<nul set /p "=m" >> %jasnx%.%ext%&goto:continua)
  111. if %errorlevel% EQU 110 (<nul set /p "=n" &set/a stringle=%stringle%+1 &<nul set /p "=n" >> %jasnx%.%ext%&goto:continua)
  112. if %errorlevel% EQU 111 (<nul set /p "=o" &set/a stringle=%stringle%+1 &<nul set /p "=o" >> %jasnx%.%ext%&goto:continua)
  113. if %errorlevel% EQU 112 (<nul set /p "=p" &set/a stringle=%stringle%+1 &<nul set /p "=p" >> %jasnx%.%ext%&goto:continua)
  114. if %errorlevel% EQU 113 (<nul set /p "=q" &set/a stringle=%stringle%+1 &<nul set /p "=q" >> %jasnx%.%ext%&goto:continua)
  115. if %errorlevel% EQU 114 (<nul set /p "=r" &set/a stringle=%stringle%+1 &<nul set /p "=r" >> %jasnx%.%ext%&goto:continua)
  116. if %errorlevel% EQU 115 (<nul set /p "=s" &set/a stringle=%stringle%+1 &<nul set /p "=s" >> %jasnx%.%ext%&goto:continua)
  117. if %errorlevel% EQU 116 (<nul set /p "=t" &set/a stringle=%stringle%+1 &<nul set /p "=t" >> %jasnx%.%ext%&goto:continua)
  118. if %errorlevel% EQU 117 (<nul set /p "=u" &set/a stringle=%stringle%+1 &<nul set /p "=u" >> %jasnx%.%ext%&goto:continua)
  119. if %errorlevel% EQU 118 (<nul set /p "=v" &set/a stringle=%stringle%+1 &<nul set /p "=v" >> %jasnx%.%ext%&goto:continua)
  120. if %errorlevel% EQU 119 (<nul set /p "=w" &set/a stringle=%stringle%+1 &<nul set /p "=w" >> %jasnx%.%ext%&goto:continua)
  121. if %errorlevel% EQU 120 (<nul set /p "=x" &set/a stringle=%stringle%+1 &<nul set /p "=x" >> %jasnx%.%ext%&goto:continua)
  122. if %errorlevel% EQU 121 (<nul set /p "=y" &set/a stringle=%stringle%+1 &<nul set /p "=y" >> %jasnx%.%ext%&goto:continua)
  123. if %errorlevel% EQU 122 (<nul set /p "=z" &set/a stringle=%stringle%+1 &<nul set /p "=z" >> %jasnx%.%ext%&goto:continua)
  124. if %errorlevel% EQU 65 (<nul set /p "=A" &set/a stringle=%stringle%+1 &<nul set /p "=A" >> %jasnx%.%ext%&goto:continua)
  125. if %errorlevel% EQU 66 (<nul set /p "=B" &set/a stringle=%stringle%+1 &<nul set /p "=B" >> %jasnx%.%ext%&goto:continua)
  126. if %errorlevel% EQU 67 (<nul set /p "=C" &set/a stringle=%stringle%+1 &<nul set /p "=C" >> %jasnx%.%ext%&goto:continua)
  127. if %errorlevel% EQU 68 (<nul set /p "=D" &set/a stringle=%stringle%+1 &<nul set /p "=D" >> %jasnx%.%ext%&goto:continua)
  128. if %errorlevel% EQU 69 (<nul set /p "=E" &set/a stringle=%stringle%+1 &<nul set /p "=E" >> %jasnx%.%ext%&goto:continua)
  129. if %errorlevel% EQU 70 (<nul set /p "=F" &set/a stringle=%stringle%+1 &<nul set /p "=F" >> %jasnx%.%ext%&goto:continua)
  130. if %errorlevel% EQU 71 (<nul set /p "=G" &set/a stringle=%stringle%+1 &<nul set /p "=G" >> %jasnx%.%ext%&goto:continua)
  131. if %errorlevel% EQU 72 (<nul set /p "=H" &set/a stringle=%stringle%+1 &<nul set /p "=H" >> %jasnx%.%ext%&goto:continua)
  132. if %errorlevel% EQU 73 (<nul set /p "=I" &set/a stringle=%stringle%+1 &<nul set /p "=I" >> %jasnx%.%ext%&goto:continua)
  133. if %errorlevel% EQU 74 (<nul set /p "=J" &set/a stringle=%stringle%+1 &<nul set /p "=J" >> %jasnx%.%ext%&goto:continua)
  134. if %errorlevel% EQU 75 (<nul set /p "=K" &set/a stringle=%stringle%+1 &<nul set /p "=K" >> %jasnx%.%ext%&goto:continua)
  135. if %errorlevel% EQU 76 (<nul set /p "=L" &set/a stringle=%stringle%+1 &<nul set /p "=L" >> %jasnx%.%ext%&goto:continua)
  136. if %errorlevel% EQU 77 (<nul set /p "=M" &set/a stringle=%stringle%+1 &<nul set /p "=M" >> %jasnx%.%ext%&goto:continua)
  137. if %errorlevel% EQU 78 (<nul set /p "=N" &set/a stringle=%stringle%+1 &<nul set /p "=N" >> %jasnx%.%ext%&goto:continua)
  138. if %errorlevel% EQU 79 (<nul set /p "=O" &set/a stringle=%stringle%+1 &<nul set /p "=O" >> %jasnx%.%ext%&goto:continua)
  139. if %errorlevel% EQU 80 (<nul set /p "=P" &set/a stringle=%stringle%+1 &<nul set /p "=P" >> %jasnx%.%ext%&goto:continua)
  140. if %errorlevel% EQU 81 (<nul set /p "=Q" &set/a stringle=%stringle%+1 &<nul set /p "=Q" >> %jasnx%.%ext%&goto:continua)
  141. if %errorlevel% EQU 82 (<nul set /p "=R" &set/a stringle=%stringle%+1 &<nul set /p "=R" >> %jasnx%.%ext%&goto:continua)
  142. if %errorlevel% EQU 83 (<nul set /p "=S" &set/a stringle=%stringle%+1 &<nul set /p "=S" >> %jasnx%.%ext%&goto:continua)
  143. if %errorlevel% EQU 84 (<nul set /p "=T" &set/a stringle=%stringle%+1 &<nul set /p "=T" >> %jasnx%.%ext%&goto:continua)
  144. if %errorlevel% EQU 85 (<nul set /p "=U" &set/a stringle=%stringle%+1 &<nul set /p "=U" >> %jasnx%.%ext%&goto:continua)
  145. if %errorlevel% EQU 86 (<nul set /p "=V" &set/a stringle=%stringle%+1 &<nul set /p "=V" >> %jasnx%.%ext%&goto:continua)
  146. if %errorlevel% EQU 87 (<nul set /p "=W" &set/a stringle=%stringle%+1 &<nul set /p "=W" >> %jasnx%.%ext%&goto:continua)
  147. if %errorlevel% EQU 88 (<nul set /p "=X" &set/a stringle=%stringle%+1 &<nul set /p "=X" >> %jasnx%.%ext%&goto:continua)
  148. if %errorlevel% EQU 89 (<nul set /p "=Y" &set/a stringle=%stringle%+1 &<nul set /p "=Y" >> %jasnx%.%ext%&goto:continua)
  149. if %errorlevel% EQU 90 (<nul set /p "=Z" &set/a stringle=%stringle%+1 &<nul set /p "=Z" >> %jasnx%.%ext%&goto:continua)
  150. if %errorlevel% EQU 63 (<nul set /p "=?" &set/a stringle=%stringle%+1 &<nul set /p "=?" >> %jasnx%.%ext%&goto:continua)
  151. if %errorlevel% EQU 33 (<nul set /p "=!" &set/a stringle=%stringle%+1 &<nul set /p "=!" >> % style="color: #448888;">jasnx%.%ext%&goto:continua)
  152. if %errorlevel% EQU 38 (<nul set /p "=&" &set/a stringle=%stringle%+1 &<nul set /p "=&" >> %jasnx%.%ext%&goto:continua)
  153. if %errorlevel% EQU 60 (<nul set /p "=<" &set/a stringle=%stringle%+1 &<nul set /p "=<" >> %jasnx%.%ext%&goto:continua)
  154. if %errorlevel% EQU 62 (<nul set /p "=>" &set/a stringle=%stringle%+1 &<nul set /p "=>" >> %jasnx%.%ext%&goto:continua)
  155. if %errorlevel% EQU 46 (<nul set /p "=." &set/a stringle=%stringle%+1 &<nul set /p "=." >> %jasnx%.%ext%&goto:continua)
  156. if %errorlevel% EQU 58 (<nul set /p "=:" &set/a stringle=%stringle%+1 &<nul set /p "=:" >> %jasnx%.%ext%&goto:continua)
  157. if %errorlevel% EQU 40 (<nul set /p "=(" &set/a stringle=%stringle%+1 &<nul set /p "=(" >> %jasnx%.%ext%&goto:continua)
  158. if %errorlevel% EQU 41 (<nul set /p "=)" &set/a stringle=%stringle%+1 &<nul set /p "=)" >> %jasnx%.%ext%&goto:continua)
  159. if %errorlevel% EQU 123 (<nul set /p "=~" &set/a stringle=%stringle%+1 &<nul set /p "=~" >> %jasnx%.%ext%&goto:continua)
  160. if %errorlevel% EQU 27 (exit /b)
  161. if %errorlevel% EQU 13 (echo.&echo. >>%jasnx%.%ext%&goto :menX)
  162. if %errorlevel%==32 (<nul set /p "= " &set/a stringle=%stringle%+1 &<nul set /p "= " >> %jasnx%.%ext%&goto:continua)
  163. if %errorlevel% EQU 134 (
  164. echo.Archivo Creado: %jasnx%.%ext%
  165. (
  166. echo.%jasnx%.%ext%
  167. )>>logs.txt
  168. FOR /F "tokens=*" %%B IN ('type %jasnx%.%ext% ^| find /v /c ""') DO (
  169. echo Cantidad de lineas: %%B
  170. )
  171. goto :men
  172. )
  173. goto:continua
  174. :key
  175. (
  176. echo n keyboard.dat
  177. echo e 0000 4D 5A 2E 00 01 00 00 00 02 00 00 10 FF FF F0 FF
  178. echo e 0010 FE FF 00 00 00 01 F0 FF 1C 00 00 00 00 00 00 00
  179. echo e 0020 B4 08 CD 21 3C 00 75 02 CD 21 B4 4C CD 21
  180. echo rcx
  181. echo 002E
  182. echo w0
  183. )>keyboard.dat
  184. type keyboard.dat|debug>NUL 2>&1
  185. del /f/q/a "keyboard.exe">NUL 2>&1
  186. ren keyboard.dat "keyboard.exe" >nul
  187. echo. Reinicie el script.
  188. Goto :Eof
  189.  

Saludos ! y a Comentar :P


« Última modificación: 2 Abril 2010, 18:08 pm por Javier G.‮ » En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
[Código-PyQT4]Calculadora - JaAViEr
Scripting
0x5d 3 4,005 Último mensaje 7 Julio 2011, 22:21 pm
por elhacker_carlos
¿Diferencia entre editor de texto y procesador de textos?
Dudas Generales
тαптяα 7 24,967 Último mensaje 28 Septiembre 2011, 22:07 pm
por .:UND3R:.
Substance, un editor de textos online open source
Noticias
wolfbcn 0 1,338 Último mensaje 1 Abril 2012, 01:40 am
por wolfbcn
Desarrollo de editor de textos con resaltado de sintaxis
Programación General
dnsdirm 4 2,701 Último mensaje 11 Agosto 2012, 00:46 am
por dnsdirm
Editor de textos en python
Scripting
Brandamm 4 3,042 Último mensaje 19 Septiembre 2016, 20:17 pm
por Brandamm
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines