Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Didattica in generale > Archivio > Progetto della sicurezza di rete > hwk3 -- dove le trovo le corrispondenze?
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
axj
.fedelissimo.

User info:
Registered: Oct 2007
Posts: 43 (0.01 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: 1
Time Online: 5:15:25 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
hwk3 -- dove le trovo le corrispondenze?

Potrebbe sembrare un dubbio stupido, ma mentre pensavo al secondo esercizio del hwk, e eleaboravo il parser, nonostante sembrasse andare tutto bene, mi sono ritrovato davanti all'amletico dubbio.... una volta che l'ho riconosciuto il token.... con quale codice lo converto l'assembly.....

Devo forse utilizzare qualche tool come hexdump.....?... e il parser deve essere universale, o riferito solamente all'altro esercizio.....

Grazie anticipatamnete, nella speranza di riuscire ad ultimare il tutto per domenica

17-10-2007 16:29
Click Here to See the Profile for axj Click here to Send axj a Private Message Visit axj's homepage! Find more posts by axj Add axj to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
jeppojeps
.fedelissimo.

User info:
Registered: Apr 2004
Posts: 46 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 7:17:00: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Convertire hex

"scrivere un programma C che genera in output il codice binario del programma relativo allo shellcode, usando il formato esadecimale"

Leggendo il testo, io ho interpretato che si doveva prendere in input l'hex e trasformarlo in binario, e non di prendere in input l'assembly


....quindi ho agito così:

objdump -d shellcode.o

ti trovi un output con le istruzioni in hex dello shellcode, io ho creato un file che contiene i dati hex e la descrizione del comando assembly.

con fgets() leggo il file riga per riga e poi con strtok separo e converto l'hex in binario....

Tu pensi che si debba convertire direttamente l'assembly in binario?

18-10-2007 20:35
Click Here to See the Profile for jeppojeps Click here to Send jeppojeps a Private Message Find more posts by jeppojeps Add jeppojeps to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ddrandom
.fedelissimo.

User info:
Registered: Mar 2006
Posts: 51 (0.01 al dì)
Location:
Corso: Informatica
Anno: 21esimo
Time Online: 16:01:58 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

jeppojeps anche io ho interpretato l'esercizio come te, ma non serve convertire in binario, il testo dice "in forma esadecimale".

Una cosa come hai fatto a mettere l'output di objdump in un file?

19-10-2007 16:32
Click Here to See the Profile for ddrandom Click here to Send ddrandom a Private Message Find more posts by ddrandom Add ddrandom to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
axj
.fedelissimo.

User info:
Registered: Oct 2007
Posts: 43 (0.01 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: 1
Time Online: 5:15:25 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

la domanda vera non è come ha fatto a metterlo in un file, e come ha fatto a farlo in C....

Se potessi usare la shell sarebbe tutto più semplice:
objdump -d programma.o >> filehex

Ma se faccio così dove lo utilizzo il C?

19-10-2007 18:16
Click Here to See the Profile for axj Click here to Send axj a Private Message Visit axj's homepage! Find more posts by axj Add axj to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
jeppojeps
.fedelissimo.

User info:
Registered: Apr 2004
Posts: 46 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 7:17:00: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
execve

Io mi sono arrangiato chiamando la execve e facendo la redirezione dell'output di objdump in un file...certo magari con più tempo si poteva fare di meglio....

19-10-2007 21:46
Click Here to See the Profile for jeppojeps Click here to Send jeppojeps a Private Message Find more posts by jeppojeps Add jeppojeps to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Golcondese
.amico.

User info:
Registered: Apr 2004
Posts: 36 (0.00 al dì)
Location: Golconda
Corso:
Anno:
Time Online: 1 Day, 21:55:20 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Il prof. a lezione ha detto che va fatto un piccolo assembler quindi è giusta l'interpretazione di axj.

20-10-2007 12:05
Click Here to See the Profile for Golcondese Click here to Send Golcondese a Private Message Find more posts by Golcondese Add Golcondese to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Nvideo
.amico.

User info:
Registered: Jan 2005
Posts: 23 (0.00 al dì)
Location: milano
Corso: TICOM
Anno:
Time Online: 12:34:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

concordo pienamente: bisogna implementare un piccolo assemblatore.
Se volete potete consultare la terza parte della videolezione, dal minuto 36.
Ciao ciao

21-10-2007 17:43
Click Here to See the Profile for Nvideo Click here to Send Nvideo a Private Message Visit Nvideo's homepage! Find more posts by Nvideo Add Nvideo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
axj
.fedelissimo.

User info:
Registered: Oct 2007
Posts: 43 (0.01 al dì)
Location: Milano
Corso: Informatica Magistrale
Anno: 1
Time Online: 5:15:25 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

non per essere critico, ma penso che non ci riuscirò per il fine settimana.... le mie conoscienze di parsing si fermano a tantom tanto, tanto tempo orsono...... io proverò fin dove riesco, alla peggio mi darà un votaccio.... non sarà ne il primo ne l'ultimo. Devo colmare alcune mie lacune, prima di poter fare in scioletezza una cosa di questo tipo. Comunque faccio i miei complimenti a chi è riuscito a fare il tutto nell'arco di una settimana. Io sinceramente non credo ce la farò.

Riguarderei volentieri le video lezioni, ma motivi di estrema burocrazia me lo impediscono.

21-10-2007 22:42
Click Here to See the Profile for axj Click here to Send axj a Private Message Visit axj's homepage! Find more posts by axj Add axj to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 11:26.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.042 seconds (70.52% PHP - 29.48% MySQL) con 26 query.