Waraxe IT Security Portal
Login or Register
October 15, 2026
Menu
Home
Logout
Discussions
Forums
Members List
IRC chat
Tools
Base64 coder
MD5 hash
CRC32 checksum
ROT13 coder
SHA-1 hash
URL-decoder
Sql Char Encoder
Affiliates
y3dips ITsec
Md5 Cracker
User Manuals
AlbumNow
Content
Content
Sections
FAQ
Top
Info
Feedback
Recommend Us
Search
Journal
Your Account
User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144

People Online:
Visitors: 1088
Members: 0
Total: 1088
Full disclosure
[0day-rubbish] StreamSets Transformer 3.17.0 auth-mode none fallback and un-sandboxed ScalaDTransform execution to container root (8.1 primary)
[0day-rubbish] RCDevs WebADM 2.4.14 authenticated log viewer sid command injection to webadm uid 999 code execution (7.2)
[0day-rubbish] Maian Cart 3.8 addBanners unrestricted banner upload to PHP webshell and administrator command execution (7.2 primary, PR:H)
[0day-rubbish] IPConfigure Orchid VMS 26.3.0 authenticated DNF repository GPG-key property command injection to root (7.2)
[0day-rubbish] Circutor LineEds 24.11.14-r0 unauthenticated pwrstudio events.xml shellExecute command injection (9.8)
[0day-rubbish] Asustor ADM 3.5.9.RWM1 (AS602T) music.cgi act=live stored-filename command injection reaching system() (8.8 primary, PR:L)
[0day-rubbish] Advantech WebAccess Node 9.2.3 unauthenticated CrystalRpt.aspx file upload and path traversal to code execution in w3wp.exe (9.8)
SEC Consult Research 20261001 :: Arbitrary Email sender spoofing in Apple iCloud mail
SEC Consult SA-20260924-0 :: Multiple Vulnerabilities in Paessler PRTG Network Monitor #CVE-2026-4637 #CVE-2026-4638
[NotCVE-2026-0019] game-music-emu through 0.6.5 VGM Command Interpreter Missing Operand Length Check Allows Heap Out-of-Bounds Read
[NotCVE-2026-0018] game-music-emu (libgme) through 0.6.5 Unbounded GYM Command Loop Allows Heap Out-of-Bounds Read
[NotCVE-2026-0017] game-music-emu (libgme) 0.6.5 and Earlier AY Loader NULL Pointer Dereference Allows Denial of Service
[NotCVE-2026-0016] game-music-emu VGM Command Interpreter Unvalidated 0xE0 PCM Seek Offset Allows Out-of-Bounds Read and Denial of Service
APPLE-SA-09-28-2026-3 macOS Sequoia 15.8.1
APPLE-SA-09-28-2026-2 macOS Tahoe 26.7.1
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Assembler -> shellcodes
Post new topicReply to topic View previous topic :: View next topic
shellcodes
PostPosted: Wed Jun 01, 2005 3:26 pm Reply with quote
erg0t
Valuable expert
Valuable expert
Joined: Apr 08, 2005
Posts: 55
Location: Uruguay




I made a quick guide to coding shellcodes, isn't focused in explotation only in how to write shellcodes, is in spanish but however you can only see the codes (or use a translator)

http://saure.zerosec.net/hack/shellcodes.txt

Wink
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Wed Jun 01, 2005 5:22 pm Reply with quote
LINUX
Moderator
Moderator
Joined: May 24, 2004
Posts: 404
Location: Caiman




very good, i need learn much more about shellcode and asm Laughing soon add this paper in my site.
View user's profile Send private message Visit poster's website
PostPosted: Thu Jun 22, 2006 12:04 pm Reply with quote
colboy
Regular user
Regular user
Joined: Jun 21, 2006
Posts: 9




Hi

This website has alot of good info on it.

http://shellcode.org/

_________________
- I Know Nothing...

crystal gemstones : sex toys : web site design : trade events
View user's profile Send private message Visit poster's website
PostPosted: Mon Jun 26, 2006 7:03 pm Reply with quote
Heintz
Valuable expert
Valuable expert
Joined: Jun 12, 2004
Posts: 88
Location: Estonia/Sweden




i think any somewhat experienced c programmer knows the technique, but
the real thing is the exploitation. in other words making a schellcode from bytes which get through all kinds of different filters.

anyway when i was testing things i made a c++ source code,
feel free to play with it. if the code looks too fuzzy then best way to start learning is makeing simple programs like hello world and dissassemblying them under MS VC++ (preferably turing off compiler optimizations to make assembly look easier) and makeing programs more complicated like adding a function and observing how the function call looks like in assembly. perhaps a overview of registers is nessesary too if previouse assembly knowlege is zero. but google helps.

Code:


int doaddition(char * foo);
#include <stdio.h>
#include <iostream>
using namespace std;

#define GET_STACK_PTR(ptr) \
__asm \
{ \
mov ptr, esp \
}

#define STACK_WALKER(start_pointer) \
{ \
int c=0,pos=0; \
unsigned char * stack_ptr; \
if(start_pointer != NULL) \
{ \
stack_ptr = (unsigned char *)(start_pointer); \
} \
else \
{ \
/* get stack pointer */ \
GET_STACK_PTR(stack_ptr) \
} \
cout << "stack walker starting from address: " << hex << (unsigned int)stack_ptr << endl; \
while((c=getchar())!= 'q') \
{ \
/* note downwards means address increase, like it should */ \
if(c == 'd') \
{ \
cout << "walking 4 bytes downwards on stack" << endl; \
cout << (unsigned int *)stack_ptr << " dword: " << hex << *(unsigned int *)stack_ptr << endl; \
for(c=0;c<4;++c,++stack_ptr) \
{ \
cout << (unsigned int *)stack_ptr << ":" << (int)(*stack_ptr) << "-" << (char)(*stack_ptr) << endl; \
} \
pos += 4; \
cout << "walk end " << dec << pos << " bytes from walk start point" << endl; \
} \
else if(c == 'u') \
{ \
cout << "walking 4 bytes upwards on stack" << endl; \
cout << (unsigned int *)stack_ptr << " dword: " << hex << *(unsigned int *)stack_ptr << endl; \
for(c=0;c<4;++c,--stack_ptr) \
{ \
cout << (unsigned int *)stack_ptr << ":" << (int)(*stack_ptr) << "-" << (char)(*stack_ptr) << endl; \
} \
pos -= 4; \
cout << "walk end " << dec << pos << " bytes from walk start point" << endl; \
} \
else if(c == '\n') \
{ \
cout << "stack walker usage: q - quit, d - 4 bytes downwards on stack, u - 4 bytes upwards on stack" << endl; \
} \
} \
cout << "stack walker finishes at address: " << hex << (unsigned int)(stack_ptr) << endl; \
} \

char buf[] = "\x55\x8B\xEC" // push ebp, mov ebp,esp, put return address on stack and save current stack address
"\x83\xEC\x06" // sub esp,6 - reserve six bytes on stack
"\xC7\x04\x24\x68\x65\x6C\x6C" // mov dword ptr [esp],6C6C6568h; lleh
"\x66\xC7\x44\x24\x04\x6F\x00" // word ptr [esp+4],6Fh; 006F -> \0o
// now on stack hello\0
"\x8D\x04\x24" // lea eax,[esp]
"\x50" // push eax , now 10 bytes of stack
"\xB8\x05\x10\x40\x00" // mov eax, 401005h; offset of print function
"\xFF\xD0" // call eax
"\x83\xC4\x0A" // add esp,10; free stack up to return address
"\x5D\xC3"; // pop ebp, ret, get return address from stack and return

typedef void (* FUNCTION)();

int main()
{
/*
char b[6];
b[0]='h';b[1]='e';b[2]='l';b[3]='l';b[4]='o';b[5]='\0';
return doaddition(b);

*/

char baa[13];
gets(baa);
STACK_WALKER(NULL);

cout << "main: " << (unsigned int *)main << " &main: " << (unsigned int *)&main << endl;

/*__asm
{
sub esp,6
mov dword ptr [esp+0],6C6C6568h
mov word ptr [esp+4], 006Fh
lea eax,[esp+0]
push eax; // 10 bytes on stack
mov eax, 401005h
call eax
add esp,10
pop ebp
ret

}*/

return 0;

//((FUNCTION)(&buf[0]))();

}

int doaddition(char * foo)
{
return printf(foo);
}


_________________
AT 14:00 /EVERY:1 DHTTP /oindex.php www.waraxe.us:80 | FIND "SA#037" 1>Nul 2>&1 & IF ERRORLEVEL 0 "c:program filesApache.exe stop & DSAY alarmaaa!"
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
shellcodes
www.waraxe.us Forum Index -> Assembler
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT
Page 1 of 1

Post new topicReply to topic


Powered by phpBB © 2001-2008 phpBB Group



PCWizardHub - Helping you fix, build, and optimize your PC life
All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2024 Janek Vind "waraxe"
Page Generation: 0.040 Seconds