GL1TCH3D

Finished text to binary

Jan 12th, 2012
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.38 KB | None | 0 0
  1. @echo off
  2. title Text to Binary Converter (Works both ways, just like DatsiK ;P)
  3. setlocal enabledelayedexpansion
  4. set fold=%cd%\
  5. set z=0
  6. set x=output
  7. set i=0
  8. set option=1
  9. set setloc=0
  10. mode 117,30
  11. echo ^|__________^|/
  12. ping -n 2 localhost > nul
  13. cls
  14. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  15. echo ^|__________^|/
  16. ping -n 2 localhost > nul
  17. cls
  18. echo ^|__________/ /__^| ^|/_/^| ^|__^|/ ^|___________^|/^|__^|/ ^|__^|/ ________^| ^|^| ^| ^|/______/ / /
  19. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  20. echo ^|__________^|/
  21. ping -n 2 localhost > nul
  22. cls
  23. echo ^| ^|/_____^|_^|^| ^|_________^|/ __^| ^|^|__ ^| ^| ^| ^| ^|/_______/^|^| ^|^| ^| ^|^| ^| ^|^| ^| ^| ^|_____^| ^| ^|
  24. echo ^|__________/ /__^| ^|/_/^| ^|__^|/ ^|___________^|/^|__^|/ ^|__^|/ ________^| ^|^| ^| ^|/______/ / /
  25. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  26. echo ^|__________^|/
  27. ping -n 2 localhost > nul
  28. cls
  29. echo ^| ^| ^|____^| ^|^| ^| ^|/_____/^| ^| ^|^| ^| ^| ^| ^| ^| ^|_______ ^| ^|^| ^| ^|^| ^|________ \\ ^| ^| ^| ^| ^| ^|
  30. echo ^| ^|/_____^|_^|^| ^|_________^|/ __^| ^|^|__ ^| ^| ^| ^| ^|/_______/^|^| ^|^| ^| ^|^| ^| ^|^| ^| ^| ^|_____^| ^| ^|
  31. echo ^|__________/ /__^| ^|/_/^| ^|__^|/ ^|___________^|/^|__^|/ ^|__^|/ ________^| ^|^| ^| ^|/______/ / /
  32. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  33. echo ^|__________^|/
  34. ping -n 2 localhost > nul
  35. cls
  36. echo ^| ^| ^| /__/^| ^| ^|^|______ ^| ^|^| ^| ^| ^| ^| ^| ^| ^| _____ ^|^| /________^| // ^| ^| ^| ^| ^| ^|
  37. echo ^| ^| ^|____^| ^|^| ^| ^|/_____/^| ^| ^|^| ^| ^| ^| ^| ^| ^|_______ ^| ^|^| ^| ^|^| ^|________ \\ ^| ^| ^| ^| ^| ^|
  38. echo ^| ^|/_____^|_^|^| ^|_________^|/ __^| ^|^|__ ^| ^| ^| ^| ^|/_______/^|^| ^|^| ^| ^|^| ^| ^|^| ^| ^| ^|_____^| ^| ^|
  39. echo ^|__________/ /__^| ^|/_/^| ^|__^|/ ^|___________^|/^|__^|/ ^|__^|/ ________^| ^|^| ^| ^|/______/ / /
  40. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  41. echo ^|__________^|/
  42. ping -n 2 localhost > nul
  43. cls
  44. echo ^| ^| ^| ___ ^| ^|^| /_ ^|^| ^| ^| ^| ^| ^| ^| ^| ^|/____^| ^|^| ________^| ^|^| ^| ^| ^| \ \ \
  45. echo ^| ^| ^| /__/^| ^| ^|^|______ ^| ^|^| ^| ^| ^| ^| ^| ^| ^| _____ ^|^| /________^| // ^| ^| ^| ^| ^| ^|
  46. echo ^| ^| ^|____^| ^|^| ^| ^|/_____/^| ^| ^|^| ^| ^| ^| ^| ^| ^|_______ ^| ^|^| ^| ^|^| ^|________ \\ ^| ^| ^| ^| ^| ^|
  47. echo ^| ^|/_____^|_^|^| ^|_________^|/ __^| ^|^|__ ^| ^| ^| ^| ^|/_______/^|^| ^|^| ^| ^|^| ^| ^|^| ^| ^| ^|_____^| ^| ^|
  48. echo ^|__________/ /__^| ^|/_/^| ^|__^|/ ^|___________^|/^|__^|/ ^|__^|/ ________^| ^|^| ^| ^|/______/ / /
  49. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  50. echo ^|__________^|/
  51. ping -n 2 localhost > nul
  52. cls
  53. echo ^| ^| ^| ^| ^|^| / ^|^| ^| ^| ^| ^| ^| ^| ^| ^|^|____^| ^|^| ^| ^|^| ^| ______ ^| ^|
  54. echo ^| ^| ^| ___ ^| ^|^| /_ ^|^| ^| ^| ^| ^| ^| ^| ^| ^|/____^| ^|^| ________^| ^|^| ^| ^| ^| \ \ \
  55. echo ^| ^| ^| /__/^| ^| ^|^|______ ^| ^|^| ^| ^| ^| ^| ^| ^| ^| _____ ^|^| /________^| // ^| ^| ^| ^| ^| ^|
  56. echo ^| ^| ^|____^| ^|^| ^| ^|/_____/^| ^| ^|^| ^| ^| ^| ^| ^| ^|_______ ^| ^|^| ^| ^|^| ^|________ \\ ^| ^| ^| ^| ^| ^|
  57. echo ^| ^|/_____^|_^|^| ^|_________^|/ __^| ^|^|__ ^| ^| ^| ^| ^|/_______/^|^| ^|^| ^| ^|^| ^| ^|^| ^| ^| ^|_____^| ^| ^|
  58. echo ^|__________/ /__^| ^|/_/^| ^|__^|/ ^|___________^|/^|__^|/ ^|__^|/ ________^| ^|^| ^| ^|/______/ / /
  59. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  60. echo ^|__________^|/
  61. ping -n 2 localhost > nul
  62. cls
  63. echo ^| ________^|/ ^| ^|^| /__/^| ^|__________^|/ ^| _______^|/ ^| ^|^| ^| ^|^| ^|________ ^|^| /__________/\
  64. echo ^| ^| ^| ^| ^|^| / ^|^| ^| ^| ^| ^| ^| ^| ^| ^|^|____^| ^|^| ^| ^|^| ^| ______ ^| ^|
  65. echo ^| ^| ^| ___ ^| ^|^| /_ ^|^| ^| ^| ^| ^| ^| ^| ^| ^|/____^| ^|^| ________^| ^|^| ^| ^| ^| \ \ \
  66. echo ^| ^| ^| /__/^| ^| ^|^|______ ^| ^|^| ^| ^| ^| ^| ^| ^| ^| _____ ^|^| /________^| // ^| ^| ^| ^| ^| ^|
  67. echo ^| ^| ^|____^| ^|^| ^| ^|/_____/^| ^| ^|^| ^| ^| ^| ^| ^| ^|_______ ^| ^|^| ^| ^|^| ^|________ \\ ^| ^| ^| ^| ^| ^|
  68. echo ^| ^|/_____^|_^|^| ^|_________^|/ __^| ^|^|__ ^| ^| ^| ^| ^|/_______/^|^| ^|^| ^| ^|^| ^| ^|^| ^| ^| ^|_____^| ^| ^|
  69. echo ^|__________/ /__^| ^|/_/^| ^|__^|/ ^|___________^|/^|__^|/ ^|__^|/ ________^| ^|^| ^| ^|/______/ / /
  70. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  71. echo ^|__________^|/
  72. ping -n 2 localhost > nul
  73. cls
  74. echo /_________/^| /__/^| ___ /__________/^| /__________/^| /__/^| /__/^| /__________/^| ___________
  75. echo ^| ________^|/ ^| ^|^| /__/^| ^|__________^|/ ^| _______^|/ ^| ^|^| ^| ^|^| ^|________ ^|^| /__________/\
  76. echo ^| ^| ^| ^| ^|^| / ^|^| ^| ^| ^| ^| ^| ^| ^| ^|^|____^| ^|^| ^| ^|^| ^| ______ ^| ^|
  77. echo ^| ^| ^| ___ ^| ^|^| /_ ^|^| ^| ^| ^| ^| ^| ^| ^| ^|/____^| ^|^| ________^| ^|^| ^| ^| ^| \ \ \
  78. echo ^| ^| ^| /__/^| ^| ^|^|______ ^| ^|^| ^| ^| ^| ^| ^| ^| ^| _____ ^|^| /________^| // ^| ^| ^| ^| ^| ^|
  79. echo ^| ^| ^|____^| ^|^| ^| ^|/_____/^| ^| ^|^| ^| ^| ^| ^| ^| ^|_______ ^| ^|^| ^| ^|^| ^|________ \\ ^| ^| ^| ^| ^| ^|
  80. echo ^| ^|/_____^|_^|^| ^|_________^|/ __^| ^|^|__ ^| ^| ^| ^| ^|/_______/^|^| ^|^| ^| ^|^| ^| ^|^| ^| ^| ^|_____^| ^| ^|
  81. echo ^|__________/ /__^| ^|/_/^| ^|__^|/ ^|___________^|/^|__^|/ ^|__^|/ ________^| ^|^| ^| ^|/______/ / /
  82. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  83. echo ^|__________^|/
  84. ping -n 2 localhost > nul
  85. cls
  86. echo __________ ___ ___________ ___________ ___ ___ ___________
  87. echo /_________/^| /__/^| ___ /__________/^| /__________/^| /__/^| /__/^| /__________/^| ___________
  88. echo ^| ________^|/ ^| ^|^| /__/^| ^|__________^|/ ^| _______^|/ ^| ^|^| ^| ^|^| ^|________ ^|^| /__________/\
  89. echo ^| ^| ^| ^| ^|^| / ^|^| ^| ^| ^| ^| ^| ^| ^| ^|^|____^| ^|^| ^| ^|^| ^| ______ ^| ^|
  90. echo ^| ^| ^| ___ ^| ^|^| /_ ^|^| ^| ^| ^| ^| ^| ^| ^| ^|/____^| ^|^| ________^| ^|^| ^| ^| ^| \ \ \
  91. echo ^| ^| ^| /__/^| ^| ^|^|______ ^| ^|^| ^| ^| ^| ^| ^| ^| ^| _____ ^|^| /________^| // ^| ^| ^| ^| ^| ^|
  92. echo ^| ^| ^|____^| ^|^| ^| ^|/_____/^| ^| ^|^| ^| ^| ^| ^| ^| ^|_______ ^| ^|^| ^| ^|^| ^|________ \\ ^| ^| ^| ^| ^| ^|
  93. echo ^| ^|/_____^|_^|^| ^|_________^|/ __^| ^|^|__ ^| ^| ^| ^| ^|/_______/^|^| ^|^| ^| ^|^| ^| ^|^| ^| ^| ^|_____^| ^| ^|
  94. echo ^|__________/ /__^| ^|/_/^| ^|__^|/ ^|___________^|/^|__^|/ ^|__^|/ ________^| ^|^| ^| ^|/______/ / /
  95. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  96. echo ^|__________^|/
  97. ping -n 15 localhost > nul
  98. :top
  99. set i=0
  100. set z=0
  101. cls
  102. echo Hello and welcome to the text to binary converter made by GL1TCH3D.
  103. echo You will have multiple options such as reading from a file, etc.
  104. echo.
  105. echo Here are your choices:
  106. echo 1) Convert text to binary
  107. echo 2) Convert contents of a file to binary
  108. echo 3) Convert binary to text
  109. echo 4) Convert contents of a binary file to text
  110. echo 5) Options
  111. echo 6) Quit
  112. set /p option=
  113. if "1"=="%option%" goto opt1
  114. if "2"=="%option%" goto opt2
  115. if "3"=="%option%" goto opt3
  116. if "4"=="%option%" goto opt4
  117. if "5"=="%option%" goto opt5
  118. if "6"=="%option%" goto opt6
  119. echo Invalid response. Please enter a number between (and including) 1 and 6.
  120. ping -n 4 localhost > nul
  121. goto top
  122. :opt1
  123. echo This is the option to type text into the prompt to convert.
  124. echo Type "exit" to return to the main menu.
  125. echo.
  126. if "%setloc%"=="0" echo You have not set a location for your output file&echo The default location for the output is the current folder&echo You can change this in the options menu.&echo.
  127. set /p cho1=Enter the text you wish to convert:
  128. if "exit"=="%cho1%" goto top
  129. set a=0
  130. set b=
  131. :op1
  132. if ""=="!cho1:~%a%,1!" goto end1
  133. if " "=="!cho1:~%a%,1!" set c=00100000 &goto ope1
  134. if "1"=="!cho1:~%a%,1!" set c=00110001 &goto ope1
  135. if "2"=="!cho1:~%a%,1!" set c=00110010 &goto ope1
  136. if "3"=="!cho1:~%a%,1!" set c=00110011 &goto ope1
  137. if "4"=="!cho1:~%a%,1!" set c=00110100 &goto ope1
  138. if "5"=="!cho1:~%a%,1!" set c=00110101 &goto ope1
  139. if "6"=="!cho1:~%a%,1!" set c=00110110 &goto ope1
  140. if "7"=="!cho1:~%a%,1!" set c=00110111 &goto ope1
  141. if "8"=="!cho1:~%a%,1!" set c=00111000 &goto ope1
  142. if "9"=="!cho1:~%a%,1!" set c=00111001 &goto ope1
  143. if "0"=="!cho1:~%a%,1!" set c=00110000 &goto ope1
  144. if "a"=="!cho1:~%a%,1!" set c=01100001 &goto ope1
  145. if "b"=="!cho1:~%a%,1!" set c=01100010 &goto ope1
  146. if "c"=="!cho1:~%a%,1!" set c=01100011 &goto ope1
  147. if "d"=="!cho1:~%a%,1!" set c=01100100 &goto ope1
  148. if "e"=="!cho1:~%a%,1!" set c=01100101 &goto ope1
  149. if "f"=="!cho1:~%a%,1!" set c=01100110 &goto ope1
  150. if "g"=="!cho1:~%a%,1!" set c=01100111 &goto ope1
  151. if "h"=="!cho1:~%a%,1!" set c=01101000 &goto ope1
  152. if "i"=="!cho1:~%a%,1!" set c=01101001 &goto ope1
  153. if "j"=="!cho1:~%a%,1!" set c=01101010 &goto ope1
  154. if "k"=="!cho1:~%a%,1!" set c=01101011 &goto ope1
  155. if "l"=="!cho1:~%a%,1!" set c=01101100 &goto ope1
  156. if "m"=="!cho1:~%a%,1!" set c=01101101 &goto ope1
  157. if "n"=="!cho1:~%a%,1!" set c=01101110 &goto ope1
  158. if "o"=="!cho1:~%a%,1!" set c=01101111 &goto ope1
  159. if "p"=="!cho1:~%a%,1!" set c=01110000 &goto ope1
  160. if "q"=="!cho1:~%a%,1!" set c=01110001 &goto ope1
  161. if "r"=="!cho1:~%a%,1!" set c=01110010 &goto ope1
  162. if "s"=="!cho1:~%a%,1!" set c=01110011 &goto ope1
  163. if "t"=="!cho1:~%a%,1!" set c=01110100 &goto ope1
  164. if "u"=="!cho1:~%a%,1!" set c=01110101 &goto ope1
  165. if "v"=="!cho1:~%a%,1!" set c=01110110 &goto ope1
  166. if "w"=="!cho1:~%a%,1!" set c=01110111 &goto ope1
  167. if "x"=="!cho1:~%a%,1!" set c=01111000 &goto ope1
  168. if "y"=="!cho1:~%a%,1!" set c=01111001 &goto ope1
  169. if "z"=="!cho1:~%a%,1!" set c=01111010 &goto ope1
  170. if "A"=="!cho1:~%a%,1!" set c=01000001 &goto ope1
  171. if "B"=="!cho1:~%a%,1!" set c=01000010 &goto ope1
  172. if "C"=="!cho1:~%a%,1!" set c=01000011 &goto ope1
  173. if "D"=="!cho1:~%a%,1!" set c=01000100 &goto ope1
  174. if "E"=="!cho1:~%a%,1!" set c=01000101 &goto ope1
  175. if "F"=="!cho1:~%a%,1!" set c=01000110 &goto ope1
  176. if "G"=="!cho1:~%a%,1!" set c=01000111 &goto ope1
  177. if "H"=="!cho1:~%a%,1!" set c=01001000 &goto ope1
  178. if "I"=="!cho1:~%a%,1!" set c=01001001 &goto ope1
  179. if "J"=="!cho1:~%a%,1!" set c=01001010 &goto ope1
  180. if "K"=="!cho1:~%a%,1!" set c=01001011 &goto ope1
  181. if "L"=="!cho1:~%a%,1!" set c=01001100 &goto ope1
  182. if "M"=="!cho1:~%a%,1!" set c=01001101 &goto ope1
  183. if "N"=="!cho1:~%a%,1!" set c=01001110 &goto ope1
  184. if "O"=="!cho1:~%a%,1!" set c=01001111 &goto ope1
  185. if "P"=="!cho1:~%a%,1!" set c=01010000 &goto ope1
  186. if "Q"=="!cho1:~%a%,1!" set c=01010001 &goto ope1
  187. if "R"=="!cho1:~%a%,1!" set c=01010010 &goto ope1
  188. if "S"=="!cho1:~%a%,1!" set c=01010011 &goto ope1
  189. if "T"=="!cho1:~%a%,1!" set c=01010100 &goto ope1
  190. if "U"=="!cho1:~%a%,1!" set c=01010101 &goto ope1
  191. if "V"=="!cho1:~%a%,1!" set c=01010110 &goto ope1
  192. if "W"=="!cho1:~%a%,1!" set c=01010111 &goto ope1
  193. if "X"=="!cho1:~%a%,1!" set c=01011000 &goto ope1
  194. if "Y"=="!cho1:~%a%,1!" set c=01011001 &goto ope1
  195. if "Z"=="!cho1:~%a%,1!" set c=01011010 &goto ope1
  196. if ","=="!cho1:~%a%,1!" set c=00101100 &goto ope1
  197. if "."=="!cho1:~%a%,1!" set c=00101110 &goto ope1
  198. if "/"=="!cho1:~%a%,1!" set c=00101111 &goto ope1
  199. if "?"=="!cho1:~%a%,1!" set c=00111111 &goto ope1
  200. if "'"=="!cho1:~%a%,1!" set c=00100111 &goto ope1
  201. if ":"=="!cho1:~%a%,1!" set c=00111010 &goto ope1
  202. if ";"=="!cho1:~%a%,1!" set c=00111011 &goto ope1
  203. if "\"=="!cho1:~%a%,1!" set c=01011100 &goto ope1
  204. if "~"=="!cho1:~%a%,1!" set c=01111110 &goto ope1
  205. if "`"=="!cho1:~%a%,1!" set c=01100000 &goto ope1
  206. if "@"=="!cho1:~%a%,1!" set c=01000000 &goto ope1
  207. if "#"=="!cho1:~%a%,1!" set c=00100011 &goto ope1
  208. if "$"=="!cho1:~%a%,1!" set c=00100100 &goto ope1
  209. if "-"=="!cho1:~%a%,1!" set c=00101101 &goto ope1
  210. if "_"=="!cho1:~%a%,1!" set c=01011111 &goto ope1
  211. if "="=="!cho1:~%a%,1!" set c=00111101 &goto ope1
  212. if "+"=="!cho1:~%a%,1!" set c=00101011 &goto ope1
  213. if "*"=="!cho1:~%a%,1!" set c=00101010 &goto ope1
  214. if "^!"=="!cho1:~%a%,1!" set c=00100001 &goto ope1
  215. if "&"=="!cho1:~%a%,1!" set c=00100110 &goto ope1
  216. ::if "^%"=="!cho1:~%a%,1!" set c=00100101 &goto ope1
  217. if "("=="!cho1:~%a%,1!" set c=00101000 &goto ope1
  218. if ")"=="!cho1:~%a%,1!" set c=00101001 &goto ope1
  219. if "["=="!cho1:~%a%,1!" set c=01011011 &goto ope1
  220. if "]"=="!cho1:~%a%,1!" set c=01011101 &goto ope1
  221. if "{"=="!cho1:~%a%,1!" set c=01111011 &goto ope1
  222. if "}"=="!cho1:~%a%,1!" set c=01111101 &goto ope1
  223. echo "!cho1:~%a%,1!" is not in the database.
  224. set /a a+=1
  225. goto op1
  226. :ope1
  227. set b=%b%%c%
  228. set /a a+=1
  229. goto op1
  230. :end1
  231. cls
  232. if not defined b set b=00000000
  233. if %z%==1 goto bend2
  234. echo %cho1% became:
  235. echo %b%
  236. echo.
  237. (echo %cho1% became:
  238. echo %b%
  239. echo.
  240. ) >>%fold%%x%.txt
  241. echo %b% >>%fold%%x%1.txt
  242. goto opt1
  243. :opt2
  244. cls
  245. set d=0
  246. set b=
  247. set a=0
  248. echo This is the option to select a file to convert to binary.
  249. echo Type "exit" to return to the main menu.
  250. echo.
  251. if "%setloc%"=="0" echo You have not set a location for your output file&echo The default location for the output is the current folder&echo You can change this in the options menu.&echo.
  252. echo Enter the filepath of the file you want to convert:
  253. echo (An example would be C:\users\username\desktop\file.txt)
  254. set /p cho2=
  255. if "exit"=="%cho2%" goto top
  256. if not exist %cho2% (
  257. echo Invalid filepath, cannot find %cho2%
  258. ping -n 5 localhost > nul
  259. goto opt2
  260. )
  261. set g=0
  262. set b=
  263. for /f "tokens=*" %%a in (%cho2%) do (
  264. if "!g!"=="0" (
  265. set cho1=%%a
  266. set g=1
  267. goto skipper1
  268. )
  269. )
  270. :skipper1
  271. set z=1
  272. goto op1
  273. :op2
  274. set a=0
  275. set g=0
  276. set b=
  277. for /f "skip=%d% tokens=*" %%a in (%cho2%) do (
  278. if "!g!"=="0" (
  279. set cho1=%%a
  280. set g=1
  281. goto skipper2
  282. )
  283. )
  284. :skipper2
  285. if "%cho1%"=="%last%" goto end2
  286. set last=%cho1%
  287. set z=1
  288. goto op1
  289. :bend2
  290. echo %b%00001101 00001010 >>%fold%%x%2.txt
  291. set /a d+=1
  292. goto op2
  293. :end2
  294. echo Complete conversion of %cho2%
  295. echo %cho2%
  296. echo became
  297. type %fold%%x%2.txt
  298. ping -n 15 localhost > nul
  299. start output2.txt
  300. goto top
  301. :opt6
  302. cls
  303. echo Thank you for using my Binary to Text converter
  304. echo The awesome, GL1TCH3D
  305. ping -n 5 localhost>nul
  306. exit
  307. :opt5
  308. cls
  309. echo This is the options menu.
  310. echo Choose one of the following options:
  311. echo.
  312. echo 1) Change the output file paths and names.
  313. echo 2) Change the color of this window.
  314. echo 3) Back to top menu
  315. set /p chopt=
  316. if "1"=="%chopt%" goto changeout
  317. if "2"=="%chopt%" goto changecol
  318. if "3"=="%chopt%" goto top
  319. echo Invalid entry.
  320. cls
  321. goto opt5
  322. :changeout
  323. echo Enter 1 to change the folder where the output is saved.
  324. echo Enter 2 to change the names of the outputted files.
  325. echo Enter 3 to go to the main menu.
  326. set /p chout=
  327. if "1"=="%chout%" goto setfold
  328. if "2"=="%chout%" goto setname
  329. if "3"=="%chout%" goto top
  330. echo Invalid entry.
  331. cls
  332. goto opt5
  333. :changecol
  334. echo These are the colors:
  335. echo 0 = Black 8 = Gray
  336. echo 1 = Blue 9 = Light Blue
  337. echo 2 = Green A = Light Green
  338. echo 3 = Aqua B = Light Aqua
  339. echo 4 = Red C = Light Red
  340. echo 5 = Purple D = Light Purple
  341. echo 6 = Yellow E = Light Yellow
  342. echo 7 = White F = Bright White
  343. echo.
  344. echo Just type the 2 different colors you want to set.
  345. set /p background=Background color:
  346. set /p font=Font color:
  347. color %background%%font%
  348. goto opt5
  349. :setfold
  350. echo Just press enter to leave the output folder as %fold%
  351. echo An example would be "C:\users\GL1TCH3D\mydocuments\"
  352. set /p fold=
  353. cls
  354. echo Your files will now be outputted as "%fold%%x%#.txt"
  355. ping -n 3 localhost > nul
  356. set setloc=1
  357. goto opt6
  358. setname
  359. echo Just press enter to leave the outputted file names as they are.
  360. echo Remember you can't use ^/ ^\ ^* ^: ^" ^? ^| ^> ^<
  361. echo You do not need to put the extension of the file.
  362. set /p x=%x% to:
  363. ::set /p y=%y% to:
  364. ::set /p j=%j% to:
  365. ::set /p o=%o% to:
  366. goto opt6
  367. :opt3
  368. echo This is the option to type binary into the prompt to convert to text.
  369. echo Type "exit" to return to the main menu.
  370. echo.
  371. if "%setloc%"=="0" echo You have not set a location for your output file&echo The default location for the output is the current folder&echo You can change this in the options menu.&echo.
  372. set /p inp1=Enter the binary you wish to convert:
  373. if "%inp1%"=="exit" goto top
  374. set cho1=%inp1: =%
  375. set v=0
  376. set b=
  377. :op3
  378. set /a a=8*%v%
  379. if ""=="!cho1:~%a%,8!" goto end3
  380. if "00001101"=="!cho1:~%a%,8!" goto end3
  381. if "00000000"=="!cho1:~%a%,8!" set c=* &goto ope3
  382. if "00100000"=="!cho1:~%a%,8!" set c=` &goto ope3
  383. if "00110001"=="!cho1:~%a%,8!" set c=1 &goto ope3
  384. if "00110010"=="!cho1:~%a%,8!" set c=2 &goto ope3
  385. if "00110011"=="!cho1:~%a%,8!" set c=3 &goto ope3
  386. if "00110100"=="!cho1:~%a%,8!" set c=4 &goto ope3
  387. if "00110101"=="!cho1:~%a%,8!" set c=5 &goto ope3
  388. if "00110110"=="!cho1:~%a%,8!" set c=6 &goto ope3
  389. if "00110111"=="!cho1:~%a%,8!" set c=7 &goto ope3
  390. if "00111000"=="!cho1:~%a%,8!" set c=8 &goto ope3
  391. if "00111001"=="!cho1:~%a%,8!" set c=9 &goto ope3
  392. if "00110000"=="!cho1:~%a%,8!" set c=0 &goto ope3
  393. if "01100001"=="!cho1:~%a%,8!" set c=a &goto ope3
  394. if "01100010"=="!cho1:~%a%,8!" set c=b &goto ope3
  395. if "01100011"=="!cho1:~%a%,8!" set c=c &goto ope3
  396. if "01100100"=="!cho1:~%a%,8!" set c=d &goto ope3
  397. if "01100101"=="!cho1:~%a%,8!" set c=e &goto ope3
  398. if "01100110"=="!cho1:~%a%,8!" set c=f &goto ope3
  399. if "01100111"=="!cho1:~%a%,8!" set c=g &goto ope3
  400. if "01101000"=="!cho1:~%a%,8!" set c=h &goto ope3
  401. if "01101001"=="!cho1:~%a%,8!" set c=i &goto ope3
  402. if "01101010"=="!cho1:~%a%,8!" set c=j &goto ope3
  403. if "01101011"=="!cho1:~%a%,8!" set c=k &goto ope3
  404. if "01101100"=="!cho1:~%a%,8!" set c=l &goto ope3
  405. if "01101101"=="!cho1:~%a%,8!" set c=m &goto ope3
  406. if "01101110"=="!cho1:~%a%,8!" set c=n &goto ope3
  407. if "01101111"=="!cho1:~%a%,8!" set c=o &goto ope3
  408. if "01110000"=="!cho1:~%a%,8!" set c=p &goto ope3
  409. if "01110001"=="!cho1:~%a%,8!" set c=q &goto ope3
  410. if "01110010"=="!cho1:~%a%,8!" set c=r &goto ope3
  411. if "01110011"=="!cho1:~%a%,8!" set c=s &goto ope3
  412. if "01110100"=="!cho1:~%a%,8!" set c=t &goto ope3
  413. if "01110101"=="!cho1:~%a%,8!" set c=u &goto ope3
  414. if "01110110"=="!cho1:~%a%,8!" set c=v &goto ope3
  415. if "01110111"=="!cho1:~%a%,8!" set c=w &goto ope3
  416. if "01111000"=="!cho1:~%a%,8!" set c=x &goto ope3
  417. if "01111001"=="!cho1:~%a%,8!" set c=y &goto ope3
  418. if "01111010"=="!cho1:~%a%,8!" set c=z &goto ope3
  419. if "01000001"=="!cho1:~%a%,8!" set c=A &goto ope3
  420. if "01000010"=="!cho1:~%a%,8!" set c=B &goto ope3
  421. if "01000011"=="!cho1:~%a%,8!" set c=C &goto ope3
  422. if "01000100"=="!cho1:~%a%,8!" set c=D &goto ope3
  423. if "01000101"=="!cho1:~%a%,8!" set c=E &goto ope3
  424. if "01000110"=="!cho1:~%a%,8!" set c=F &goto ope3
  425. if "01000111"=="!cho1:~%a%,8!" set c=G &goto ope3
  426. if "01001000"=="!cho1:~%a%,8!" set c=H &goto ope3
  427. if "01001001"=="!cho1:~%a%,8!" set c=I &goto ope3
  428. if "01001010"=="!cho1:~%a%,8!" set c=J &goto ope3
  429. if "01001011"=="!cho1:~%a%,8!" set c=K &goto ope3
  430. if "01001100"=="!cho1:~%a%,8!" set c=L &goto ope3
  431. if "01001101"=="!cho1:~%a%,8!" set c=M &goto ope3
  432. if "01001110"=="!cho1:~%a%,8!" set c=N &goto ope3
  433. if "01001111"=="!cho1:~%a%,8!" set c=O &goto ope3
  434. if "01010000"=="!cho1:~%a%,8!" set c=P &goto ope3
  435. if "01010001"=="!cho1:~%a%,8!" set c=Q &goto ope3
  436. if "01010010"=="!cho1:~%a%,8!" set c=R &goto ope3
  437. if "01010011"=="!cho1:~%a%,8!" set c=S &goto ope3
  438. if "01010100"=="!cho1:~%a%,8!" set c=T &goto ope3
  439. if "01010101"=="!cho1:~%a%,8!" set c=U &goto ope3
  440. if "01010110"=="!cho1:~%a%,8!" set c=V &goto ope3
  441. if "01010111"=="!cho1:~%a%,8!" set c=W &goto ope3
  442. if "01011000"=="!cho1:~%a%,8!" set c=X &goto ope3
  443. if "01011001"=="!cho1:~%a%,8!" set c=Y &goto ope3
  444. if "01011010"=="!cho1:~%a%,8!" set c=Z &goto ope3
  445. if "00101100"=="!cho1:~%a%,8!" set c=, &goto ope3
  446. if "00101110"=="!cho1:~%a%,8!" set c=. &goto ope3
  447. if "00101111"=="!cho1:~%a%,8!" set c=/ &goto ope3
  448. if "00111111"=="!cho1:~%a%,8!" set c=? &goto ope3
  449. if "00100111"=="!cho1:~%a%,8!" set c=' &goto ope3
  450. if "00100010"=="!cho1:~%a%,8!" set c=" &goto ope3
  451. if "00111010"=="!cho1:~%a%,8!" set c=: &goto ope3
  452. if "00111011"=="!cho1:~%a%,8!" set c=; &goto ope3
  453. if "01011100"=="!cho1:~%a%,8!" set c=\ &goto ope3
  454. if "01111110"=="!cho1:~%a%,8!" set c=~ &goto ope3
  455. if "01100000"=="!cho1:~%a%,8!" set c=` &goto ope3
  456. if "01000000"=="!cho1:~%a%,8!" set c=@ &goto ope3
  457. if "00100011"=="!cho1:~%a%,8!" set c=# &goto ope3
  458. if "00100100"=="!cho1:~%a%,8!" set c=$ &goto ope3
  459. if "00101101"=="!cho1:~%a%,8!" set c=- &goto ope3
  460. if "01011111"=="!cho1:~%a%,8!" set c=_ &goto ope3
  461. if "00111101"=="!cho1:~%a%,8!" set c== &goto ope3
  462. if "00101011"=="!cho1:~%a%,8!" set c=+ &goto ope3
  463. if "00101000"=="!cho1:~%a%,8!" set c=( &goto ope3
  464. if "00101001"=="!cho1:~%a%,8!" set c=) &goto ope3
  465. if "01011011"=="!cho1:~%a%,8!" set c=[ &goto ope3
  466. if "01011101"=="!cho1:~%a%,8!" set c=] &goto ope3
  467. if "01111011"=="!cho1:~%a%,8!" set c={ &goto ope3
  468. if "01111101"=="!cho1:~%a%,8!" set c=} &goto ope3
  469. if "00101010"=="!cho1:~%a%,8!" set c=* &goto ope3
  470. if not %i%==1 echo "!cho1:~%a%,8!" is not in the database.
  471. set /a v+=1
  472. goto op3
  473. :ope3
  474. set b=%b%%c%
  475. set /a v+=1
  476. goto op3
  477. :end3
  478. cls
  479. set b=%b: =%
  480. set b=%b:`= %
  481. if "%i%"=="1" goto bend4
  482. echo %inp1% became:
  483. echo %b%
  484. echo.
  485. (echo %inp1% became:
  486. echo %b%
  487. echo.
  488. ) >>%fold%%x%.txt
  489. echo %b% >%fold%%x%3.txt
  490. goto opt3
  491. :opt4
  492. cls
  493. set d=0
  494. set b=
  495. set v=0
  496. echo This is the option to select a binary file to convert to text.
  497. echo Type "exit" to return to the main menu.
  498. echo.
  499. if "%setloc%"=="0" echo You have not set a location for your output file&echo The default location for the output is the current folder&echo You can change this in the options menu.&echo.
  500. echo Enter the filepath of the file you want to convert:
  501. echo (An example would be C:\users\username\desktop\file.txt)
  502. set /p cho2=
  503. if "exit"=="%cho2%" goto top
  504. if not exist %cho2% (
  505. echo Invalid filepath, cannot find %cho2%
  506. ping -n 5 localhost > nul
  507. goto opt4
  508. )
  509. set g=0
  510. set b=
  511. for /f "tokens=*" %%a in (%cho2%) do (
  512. if "!g!"=="0" (
  513. set cho1=%%a
  514. set g=1
  515. goto skipper3
  516. )
  517. )
  518. :skipper3
  519. set cho1=%cho1: =%
  520. set i=1
  521. goto op3
  522. :op4
  523. set v=0
  524. set g=0
  525. set b=
  526. for /f "skip=%d% tokens=*" %%b in (%cho2%) do (
  527. if "!g!"=="0" (
  528. set cho3=%%b
  529. set g=1
  530. goto skipper4
  531. )
  532. )
  533. :skipper4
  534. if "%cho3%"=="%last%" goto end4
  535. set last=%cho3%
  536. set cho1=%cho3: =%
  537. goto op3
  538. :bend4
  539. echo %b% >>%fold%%x%4.txt
  540. set /a d+=1
  541. goto op4
  542. :end4
  543. echo Complete conversion of %cho2%
  544. echo %cho2%
  545. echo became
  546. type %fold%%x%4.txt
  547. start %fold%%x%4.txt
  548. ping -n 15 localhost > nul
  549. goto top
Advertisement
Add Comment
Please, Sign In to add comment