that format is not supported by text2pcap.
http://www.wireshark.org/docs/wsug_html_chunked/AppToolstext2pcap.html
Text2pcap understands a hexdump of the form generated by od -Ax -tx1 -v. In other words,
each byte is individually displayed and surrounded with a space. Each line begins with an offset describing the position in the file. The offset is a hex number (can also be octal or decimal - see -o), of more than two hex digits.
Here is a sample dump that text2pcap can recognize:`
Please convert it to a format like this:
000000 c3 64 f2 1d 7e 09 80 03 ........ 000008 10 1b 0d 12 06 00 71 04 ........ ...
How can you do it?
#include "what_we_need.h"
#define GOOD 1
#define BAD 0
int able_to_program;
int want_to_use_editor;
int found_victim;
int mood;
able_to_program = check_programming_skills();
want_to_use_editor = check_editor_and_mood();
if (want_to_use_editor) {
mood = GOOD;
use_editor_to_format_string(mood);
} else {
if (able_to_program) {
write_a_script_to_format_string();
} else {
found_victim = find_someone_who_can_do_it_for_you();
if (found_victim) {
let_him_do_it();
} else {
mood = BAD;
swear_a_few_seconds();
use_editor_to_format_string(mood);
}
}
}
;-)
Regards
Kurt
answered 29 Jun ‘12, 03:02
Kurt Knochner ♦
24.8k●10●39●237
accept rate: 15%
Is that code GPL’d? :)
Sorry, I forgot to mention it. Yep, it’s GPL. Feel free to extend it ;-))