Advertisement
Osku958

acc maker 2-05

Jul 4th, 2014
2,097
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #singleinstance force
  2. settitlematchmode regex
  3. sendmode input
  4.  
  5. ; settings! remember to replace them with yours.
  6.  
  7. curl = %homepath%\documents\curl\curl.exe
  8. steam = C:\Program Files (x86)\Steam
  9. logfile = c:\users\administrator\desktop\log.txt
  10. ahk = %temp%\ahk ; you shouldn't change this one
  11.  
  12. randomize = 1
  13. launchsteam = 1
  14. advanced = 1
  15. clear = 1
  16. connectserver = 1
  17. lastlogin = 1
  18. pmail = me@gmail.com
  19. pavatar = c:\users\administrator\desktop\1381700760595.jpg
  20.  
  21. pname = not+an+alt
  22. ;default permanent/persistent display name for the text box
  23. ;has to be url encoded. http://en.wikipedia.org/wiki/Percent-encoding
  24. ;plus signs for spaces work too
  25. ;++++ all percent signs must have a ` (grave accent) behind them (it's for autohotkey)
  26. ;like "100`%" if you want your name to be "100%"
  27. ;.
  28. ;use "`%E2`%80`%8E" without the quotes for generic "nameless"
  29. ;(servers with sourcemod anticheat won't let you play though)
  30. ;it's the left-to-right mark unicode control character btw
  31.  
  32. 404 = 0
  33. ;404: use no avatar at all. (setting = 1 or 0)
  34. ;there's a game with official avatars and all the images 404
  35. ;could be neat with the nameless thing? i dunno.
  36. ;also ignores the pavatar setting
  37.  
  38. tf2launchoptions = -w 1920 -h 1080 -sw -noborder -novid
  39.  
  40. thing =
  41. thinglaunchoptions =
  42.  
  43.  
  44. ; no more settings below -- -- --
  45.  
  46. filecreatedir, %ahk%
  47. ifnotexist %curl%
  48. {
  49. msgbox,16,info,curl.exe not found`nis the path correct?
  50. exitapp
  51. }
  52. ifnotexist %steam%\steam.exe
  53. {
  54. msgbox,16,info,steam.exe not found`nis the path correct?
  55. exitapp
  56. }
  57. empty =
  58. filedelete, %ahk%\submit.html
  59. filedelete, %ahk%\edit.html
  60. filedelete, %ahk%\up.html
  61. filedelete, %ahk%\test.html
  62. filedelete, %ahk%\cc.txt
  63. filedelete, %ahk%\captcha.png
  64. filedelete, %ahk%\page.html
  65. ifnotexist, %ahk%\avatar_default.jpg
  66. urldownloadtofile, http://cdn.akamai.steamstatic.com/steamcommunity/public/images/avatars/fe/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb_full.jpg, %ahk%\avatar_default.jpg
  67. urldownloadtofile, https://store.steampowered.com/join/, %ahk%\page.html
  68. fileread, page, %ahk%\page.html
  69. regexmatch(page, "https?:\/\/store.steampowered.com\/public\/captcha\.php\?gid=([0-9]{15,25})", captcha)
  70. urldownloadtofile, %captcha%, %ahk%\captcha.png
  71. captchatime := a_tickcount + 119000
  72. gui, add, text,         x10  y28  w80  h21 vnothing right, username
  73. gui, add, text,         x10  y56  w80  h21 right, password
  74. gui, add, text,         x10  y84  w80  h21 right, email address
  75. gui, add, text,         x10  y112 w80  h21 right, secret question
  76. gui, add, text,         x10  y140 w80  h21 right, secret answer
  77. gui, add, text,         x10  y215 w80  h21 right, captcha
  78. gui, add, edit,         x100 y25  w211 h21 vahkname     , %ahkname%
  79. gui, add, edit,         x100 y53  w211 h21 vahkpass     , %ahkpass%
  80. gui, add, edit,         x100 y81  w211 h21 vahkmail     , %ahkmail%
  81. gui, add, dropdownlist, x100 y109 w211 vahkquestion         , ||NameOfSchool|FavoriteTeam|MothersMaidenName|NameOfPet|ChildHoodHero|CityBornIn
  82. gui, add, edit,         x100 y137 w211 h21 vahkanswer     ,
  83. gui, add, picture,      x100 y165 w211 h40 gnewcaptcha vcaptchapic      , %ahk%\captcha.png
  84. gui, add, edit,         x100 y212 w164 h21 vahkcaptcha     ,
  85. gui, add, button,       x99  y239 w104 h23      , randomize
  86. gui, add, button,       x208 y239 w104 h23      , submit
  87. gui, add, button,       x270 y211 w42  h23 gnewgid      , new
  88. gui, add, checkbox,     x100 y268 w103 h13 vpmailbox      , use real email
  89. gui, add, checkbox,     x209 y268 w103 h13 vlaunchsteam      , launch steam
  90. gui, add, picture,      x325 y25  w180 h180 gchooseavatar vavatarpic      , %ahk%\avatar_default.jpg
  91. gui, add, edit,         x325 y212 w148 h21 vavatardir      ,
  92. gui, add, edit,         x325 y240 w180 h21 vpersonaname      ,
  93. gui, add, button,       x479 y211 w27  h23 gchooseavatar vselectbtn      , ...
  94. gui, add, text,         x515 y215 w80  h21 , avatar
  95. gui, add, text,         x515 y243 w80  h21 , display name
  96. gui, add, checkbox,     x325 y268 w190 h13 vadvanced gadvance      , do the super advanced stuff above
  97. gui, add, edit,         x100 y288 w211 h160 vahkserverbox
  98. gui, add, button,       x324 y287 w80  h23, start steam
  99. gui, add, checkbox,     x408 y292 w120 h13 vlastlogin, + log in last acc
  100. gui, add, button,       x324 y315 w80  h23, start tf2
  101. gui, add, checkbox,     x408 y320 w120 h13 vconnectserver, connect to server
  102. gui, add, button,       x324 y343 w80  h23 vstartthing, start thing
  103. ;gui, add, checkbox,    x408 y348 w120 h13, box
  104. gui, add, button,       x324 y371 w80  h23, close steam
  105. ;gui, add, checkbox,    x408 y376 w120 h13, box
  106. gui, add, button,       x324 y399 w80  h23, close tf2
  107. ;gui, add, checkbox,    x408 y404 w120 h13, box
  108. gui, add, button,       x324 y426 w80  h23 vclosething, close thing
  109. gui, add, checkbox,     x408 y431 w120 h13 v404, 404 avatar
  110.  
  111. if not (pmail = "")
  112.     guicontrol,, pmailbox, 1
  113. else
  114.     guicontrol,disable, pmailbox
  115. if launchsteam = 1
  116.     guicontrol,, launchsteam, 1
  117. if (logfile = "")
  118.     {
  119.     guicontrol,, lastlogin, 0
  120.     guicontrol, disable, lastlogin
  121. }
  122. else
  123. if lastlogin = 1
  124.     guicontrol,, lastlogin, 1
  125.         else
  126.             guicontrol,, lastlogin, 0
  127. if advanced = 1
  128.     guicontrol,, advanced, 1
  129. if not (pname = "")
  130.     guicontrol,, personaname, %pname%
  131. ifnotexist, %pavatar%
  132.     {
  133.     guicontrol,,avatarpic,%ahk%\avatar_default.jpg
  134.     guicontrol,,avatardir,%empty%
  135. }
  136. else
  137. if not (pavatar = "")
  138.     {
  139.     guicontrol,,avatarpic,%pavatar%
  140.     guicontrol,,avatardir,%pavatar%
  141. }
  142. if connectserver = 1
  143.     guicontrol,, connectserver, 1
  144. if 404 = 1
  145.     guicontrol,, 404, 1
  146.  
  147. gosub buttonrandomize
  148.  
  149. gui, show,              x5   y5   w605 h466     , hello %a_username%
  150.  
  151. advance:
  152.     gui, submit, nohide
  153.     if (advanced = 0)
  154.     {
  155.     guicontrol, disable, personaname
  156.     guicontrol, disable, avatardir
  157.     guicontrol, disable, selectbtn
  158. }
  159.     else
  160.     {
  161.     guicontrol, enable, personaname
  162.     guicontrol, enable, avatardir
  163.     guicontrol, enable, selectbtn
  164. }
  165.  
  166. guicontrol, focus, nothing
  167. return
  168.  
  169. newcaptcha:
  170.     if (a_tickcount > captchatime)
  171.     goto newgid
  172.     urldownloadtofile, %captcha%, %ahk%\captcha.png
  173.     guicontrol,,captchapic,%ahk%\captcha.png
  174.     guicontrol, focus, ahkcaptcha
  175. return
  176.  
  177. newgid:
  178.     urldownloadtofile, https://store.steampowered.com/join/, %ahk%\page.html
  179.     captchatime := a_tickcount + 119000
  180.     fileread, page, %ahk%\page.html
  181.     regexmatch(page, "https?:\/\/store.steampowered.com\/public\/captcha\.php\?gid=([0-9]{15,25})", captcha)
  182.     urldownloadtofile, %captcha%, %ahk%\captcha.png
  183.     guicontrol,,captchapic,%ahk%\captcha.png
  184.     guicontrol,,ahkcaptcha,
  185.     guicontrol, focus, ahkcaptcha
  186. return
  187.  
  188. chooseavatar:
  189.     fileselectfile, avatarpic, 3,,choose avatar,(*.jpg; *.jpeg; *.png)
  190.     if (avatarpic = "")
  191.         {
  192.         guicontrol,,avatarpic,%ahk%\avatar_default.jpg
  193.         guicontrol,,avatardir,%empty%
  194.     }
  195.     else
  196.         {
  197.         guicontrol,,avatarpic,%avatarpic%
  198.         guicontrol,,avatardir,%avatarpic%
  199.     }
  200. return
  201.  
  202. buttonstartsteam:
  203. gui, submit, nohide
  204.     filedelete, %steam%\config\SteamAppData.vdf
  205.     filedelete, %steam%\ClientRegistry.blob
  206.     if lastlogin = 1
  207.         {
  208.         fileread, ahklog, %logfile%
  209.         regexmatch(ahklog, "\| username: ([a-z]{8,16}) \|.*$",loginname)
  210.         regexmatch(ahklog, "\| password: ([a-zA-Z0-9]{8,20}) \|.*$",loginpass)
  211.         if (loginname1 = "") or (loginpass1 = "")
  212.             {
  213.             msgbox, couldn't find any accounts from the log
  214.             return
  215.         }
  216.         run, %steam%\steam.exe -login %loginname1% %loginpass1%
  217.     }
  218.     else
  219.     run, %steam%\steam.exe
  220. return
  221. buttonclosesteam:
  222.     process, close, vrserver.exe
  223.     process, close, steamservice.exe
  224.     process, close, steam.exe
  225. return
  226.  
  227. buttonstarttf2:
  228.     gui, submit, nohide
  229.     if connectserver = 1
  230.         {
  231.         connect1 =
  232.         connect2 =
  233.         regexmatch(ahkserverbox, "(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(:(\d{1,5}))?.*$",connect)
  234.         if (connect1 = "") or (connect2 = "")
  235.         connect =
  236.         else
  237.         connect = +connect %connect1%%connect2%
  238.     }
  239.     else
  240.     connect =
  241.     if not (tf2launchoptions = "")
  242.     launch := tf2launchoptions
  243.     run, %steam%\steamapps\common\team fortress 2\hl2.exe -steam -game tf %launch% %connect%
  244. return
  245. buttonclosetf2:
  246.     process, close, gameoverlayui.exe
  247.     process, close, hl2.exe
  248.     process, close, vrserver.exe
  249. return
  250.  
  251. buttonstartthing:
  252.     run, %thing% %thinglaunchoptions%
  253. return
  254. buttonclosething:
  255.     regexmatch(thing, "\\(.+\\)*(.+\..+)$", thingname)
  256.     process, close, %thingname2%
  257. return
  258.  
  259. buttonsubmit:
  260.     gui, submit, nohide
  261.     if (a_tickcount > captchatime)
  262.     {
  263.     msgbox,64,submit,your captcha expired`nfill in a new one!
  264.     goto newgid
  265.     }
  266.     avatarpic := avatardir
  267.     stringreplace,ahkcaptcha,ahkcaptcha,`%,`%25
  268.     stringreplace,ahkcaptcha,ahkcaptcha,&,`%26
  269.     filedelete, %ahk%\submit.html
  270.     filedelete, %ahk%\edit.html
  271.     filedelete, %ahk%\up.html
  272.     filedelete, %ahk%\test.html
  273.     filedelete, %ahk%\cc.txt
  274.     run, %curl% --output %ahk%\submit.html -k -b %ahk%\cc.txt -c %ahk%\cc.txt --data "accountname=%ahkname%&password=%ahkpass%&email=%ahkmail%&challenge_question=%ahkquestion%&secret_answer=%ahkanswer%&captchagid=%captcha1%&captcha_text=%ahkcaptcha%&i_agree=1" https://store.steampowered.com/join/createaccount/,,min
  275.     winwait, .*\\curl.exe
  276.     winwaitclose, .*\\curl.exe
  277.     fileread, submit, %ahk%\submit.html
  278.     regexmatch(submit, "bSuccess.*true", submittest)
  279.     if (submittest = "") ; blank submittest = error
  280.         {
  281.         msgbox,64,submit,%submit%`n`n(that`'s an error)
  282.         gosub newgid
  283.         return
  284.     }
  285.     fileread, cc, %ahk%\cc.txt
  286.     stringreplace, cc, cc,store.steampowered.com`t,steamcommunity.com`t,1
  287.     filedelete, %ahk%\cc.txt
  288.     fileappend, %cc%, %ahk%\cc.txt
  289.     run, %curl% --output %ahk%\test.html -k -b %ahk%\cc.txt http://steamcommunity.com/,,min
  290.     winwait, .*\\curl.exe
  291.     winwaitclose, .*\\curl.exe
  292.     fileread, ahktest, %ahk%\test.html
  293.     regexmatch(ahktest, "g_sessionID = .(.*).;", sessionid)
  294.     stringreplace, sessionweb, sessionid1,=,`%3D,1
  295.     regexmatch(cc, "steamLogin\t(7656[0-9]{13})", steamid)
  296.     fileread, cc, %ahk%\cc.txt
  297.     filedelete, %ahk%\cc.txt
  298.     fileappend, %cc%`nsteamcommunity.com`tFALSE`t/`tFALSE`t0`tsessionid`t%sessionweb%, %ahk%\cc.txt
  299.     if advanced = 1
  300.         {
  301.         if 404 = 1
  302.             {
  303.             run, %curl% --output %ahk%\up.html --data "selectedAvatar=0&sessionid=%sessionweb%" -k -b %ahk%\cc.txt "http://steamcommunity.com/games/266070/selectAvatar",,min
  304.             winwait, .*\\curl.exe
  305.             winwaitclose, .*\\curl.exe
  306.             sleep, 500
  307.             }
  308.         else
  309.         if not (avatarpic = "")
  310.             {
  311.             run, %curl% --output %ahk%\up.html --form "MAX_FILE_SIZE=204800" --form "type=player_avatar_image" --form "sId=%steamid1%" --form "doSub=1" --form "avatar=@%avatarpic%" -k -b %ahk%\cc.txt "http://steamcommunity.com/actions/FileUploader?type=player_avatar_image&sId=%steamid1%",,min
  312.             winwait, .*\\curl.exe
  313.             winwaitclose, .*\\curl.exe
  314.         sleep, 500
  315.         }
  316.         if not (personaname = "")
  317.             {
  318.             run, %curl% --output %ahk%\edit.html -k -b %ahk%\cc.txt --data "sessionID=%sessionweb%&type=profileSave&personaName=%personaname%" http://steamcommunity.com/profiles/%steamid1%/edit,,min
  319.             winwait, .*\\curl.exe
  320.             winwaitclose, .*\\curl.exe
  321.         sleep, 500
  322.         }
  323.     }
  324.    
  325.     if not (logfile = "")
  326.         {
  327.         formattime, ahktime
  328.         fileappend, `n%ahktime% - http://steamcommunity.com/profiles/%steamid1% | username: %ahkname% | password: %ahkpass% | email: %ahkmail% | secret question: %ahkquestion% | secret answer: %ahkanswer%, %logfile%
  329.     }
  330.     if launchsteam = 1
  331.         {
  332.         process, close, vrserver.exe
  333.         process, close, steamservice.exe
  334.         process, close, steam.exe
  335.         sleep, 500
  336.         filedelete, %steam%\config\SteamAppData.vdf
  337.         sleep, 1000
  338.         run, %steam%\steam.exe -login %ahkname% %ahkpass%
  339.     }
  340.     sleep, 100
  341.     gosub newgid
  342.     if clear = 1
  343.     gosub buttonrandomize
  344. return
  345. guiclose:
  346. filedelete, %ahk%\submit.html
  347. filedelete, %ahk%\edit.html
  348. filedelete, %ahk%\up.html
  349. filedelete, %ahk%\test.html
  350. filedelete, %ahk%\cc.txt
  351. filedelete, %ahk%\captcha.png
  352. filedelete, %ahk%\page.html
  353. exitapp
  354. return ; ?
  355. buttonrandomize:
  356. gui, submit, nohide
  357.     ncharlist = a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z
  358.     pcharlist = a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,1,2,3,4,5,6,7,8,9,0
  359.     m1charlist = a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,1,2,3,4,5,6,7,8,9,0
  360.     nstr =
  361.     pstr =
  362.     m1str =                                                        
  363.     m2str =                                                        
  364.     m3str =
  365.     ssstr =
  366.     random, nrand, 8, 16
  367.     random, prand, 8, 20
  368.     random, m1rand, 6, 8
  369.     random, m2rand, 4, 6
  370.     random, m3rand, 2, 3
  371.     random, ssrand, 6, 16
  372.     random, srand, 2, 7
  373.     stringsplit, chararray, ncharlist, `, ; [a-z]{8,16}
  374.     loop, %nrand%
  375.     {       random, pick, 1, %chararray0%
  376.             item := chararray%pick%
  377.             nstr = %nstr%%item%
  378.     }
  379.     stringsplit, chararray, pcharlist, `, ; [a-zA-Z0-9]{8,20}
  380.     loop, %prand%
  381.     {       random, pick, 1, %chararray0%
  382.             item := chararray%pick%
  383.             pstr = %pstr%%item%
  384.     }
  385.     stringsplit, chararray, m1charlist, `,
  386.     loop, %m1rand%
  387.     {       random, pick, 1, %chararray0%
  388.             item := chararray%pick%
  389.             m1str = %m1str%%item%
  390.     }
  391.     stringsplit, chararray, ncharlist, `,
  392.     loop, %m2rand%
  393.     {       random, pick, 1, %chararray0%
  394.             item := chararray%pick%
  395.             m2str = %m2str%%item%
  396.     }
  397.     stringsplit, chararray, ncharlist, `,
  398.     loop, %m3rand%
  399.     {       random, pick, 1, %chararray0%
  400.             item := chararray%pick%
  401.             m3str = %m3str%%item%
  402.     }
  403.     stringsplit, chararray, ncharlist, `,
  404.     loop, %ssrand%
  405.     {       random, pick, 1, %chararray0%
  406.             item := chararray%pick%
  407.             ssstr = %ssstr%%item%
  408.     }
  409.     guicontrol,, ahkname, %nstr%
  410.     guicontrol,, ahkpass, %pstr%
  411.     if pmailbox = 1
  412.     guicontrol,, ahkmail, %pmail%
  413.     else
  414.     guicontrol,, ahkmail, %m1str%@%m2str%.%m3str%
  415.     guicontrol, choose, ahkquestion, %srand%
  416.     guicontrol,, ahkanswer, %ssstr%
  417. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement