EG Information
Training Missions
Knowledge Bank
|
|
Enigma Group's Code Bank
Simple LoopBy: haykuro - Date Submitted: 2008-10-05 15:05:51 include 'fasmincludewin32ax.inc' ; include our required librarys and stuff (for Sleep and ShellExecute) .data ; the data section stores data. this is where you define variables and ect. magicsite db "http://www.google.com/search?q=HACKED",0 ; define variable magicsite and set its value in memory to "http://www......" action db "open",0 ; define our action for ShellExecute under variable "action" with value "open" .code ; this section tells the compiler where our actual CODE starts. start: ; doesnt have to be start, can be anything you like, i just use start or "main" for organizational purposes. @loopme: ; the @ isn't required. it can also be defined as "loopme:" the act of having the colon (":") defines it as a location. invoke Sleep, 9000 ; invoke is the equivalent to a call in any other language. this allows for a proper stack. ; the reverse stack for sleep would be something similar to: ; mov eax, 9000 // place value 9000 into EAX ; push eax // push EAX (9000) into stack ; call Sleep // call Sleep invoke ShellExecute, NULL, action, magicsite, NULL, NULL, SW_SHOWNORMAL ; Call ShellExecute. jmp @loopme ; Jump back to the location @loopme @exit: ; Even though we will never reach here, just in case we want to handle it though. ;) invoke ExitProcess, 0 ; ExitProcess with return code 0 (proper exit) .end start ; required to close and tell the assembler we're done.
|
| Return to
asm category list |
|
|
Who's Online
486 Guests, 100 Users Nicid1, ckryptix, TheRetech, Diznablo, Ios, viper0i0, rabbidmind, Nasrudin, CollapsingWalls, mehtaparag, bitstrike, jnony, C, Nusquam-Redono-Sapientia, bazcrown, saifulfaizan, The End, Ultraminor, psychomarine, st3alth, themastersinner, pgmrlink, login, lionaneesh, ishkur88, mahraja, Mac, chekifr, gandalf88, Vap0r, t0ast, tantrum6226, BnE, Distorted, Psiber_Syn, Ausome1, invas10n, oldgoat, freedaysbecumei, BinaryShinigami, Rex_Mundi, Red_beard, Strobeflux, s0m3nak3dguy, Descent, teehee, machupicchu, Genetix, Anandarl, NotMyOwn, thegamerdude, Godzila, popo12341234, RedEvolution, velocity_b, myne17, teto111, aVoid, Central-Gsm, 1101, JackalReborn, InjectioN, h4lted, c0re, DisPater, markt4death, splatta, Jackowacko, saint556, Pyron2312, Azerion, howsens, white.hat.gone.bad, vazzilly, pwunkz, Inverted, QuarterCask, Infernoe11, deskata, cr4ck3rj4ck, Blizer, jasonmax, j0sh, gwenwavor, N4g4c3N, spizeyboy, Network X, Uino59, Jae Cee, ianFDK, saykov, medhaavee, zofy, demonkiller410, Stumble, SaMTHG, kishore, Raze, helasraizam, Venom1019 |
| |
|
|
|
|
|