diff --git a/src/Program.cpp b/src/Program.cpp index ba23ac4..d711ed3 100644 --- a/src/Program.cpp +++ b/src/Program.cpp @@ -30,7 +30,7 @@ int Program::list() { Host h = Host(); Packet p = Packet(Packet::DISCOVERY); p.setHostMac(h.getMac()); - p.setPayload({}); + p.setPayload( { }); bytes a = p.getBytes(); p.encode(a); @@ -70,6 +70,12 @@ int Program::sniff() { printf("\nReceive Body:\t"); utils::printHex(p.getBody()); printf("\n"); + for(auto a : p.getPayload()) { + dataset d = a.second; + printf("#%d\tLength: %d Value: %s\n",d.type,d.len,&d.value[0]); + } + printf("\n"); + printf("\n"); printf("\n"); return 0; }; diff --git a/src/dict.txt b/src/dict.txt new file mode 100644 index 0000000..7c8cbd8 --- /dev/null +++ b/src/dict.txt @@ -0,0 +1,11 @@ +change Password: +#512 Length: 6 Value: admin +#513 Length: 6 Value: admin +#514 Length: 10 Value: +#515 Length: 10 Value: + +login: +#2305 Length: 0 Value: (null) + +#512 Length: 6 Value: admin +#514 Length: 10 Value: \ No newline at end of file