Da esadecimale ad asciiPDF | Stampa | E-mail
Scritto da Luca Sciortino  
Martedì 09 Settembre 2008 20:52
//Riscalgo al codice ascii dallo shellcode 
/ ConvShell
// Da esadecimale a ascii
// Uso : cat <nomefile> | ./ConvShell

#include <stdio.h>
#include <stdlib.h>

main()
{
int b;
int i = 0;
char c;
char num[3];

while ((c=getchar())!= EOF) {
if(c=='\\')
num[i++] = '0';
else
num[i++] = c;
if(i==4){
i = 0;
sscanf(num, "%x", &b);
// printf("%s", num);
printf("%c", b);
}

}
}
 

Dove sono

Location

Via L.Galvani, 36
20019 Settimo Milanese (Mi)
Partita Iva 06656160964
luke @ lsciortino.com ( e )
Fax +39 0270038898