Commit a55e2195 authored by /jdi/'s avatar /jdi/
Browse files

sniffed actions

parent 671a9df9
......@@ -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;
};
......
change Password:
#512 Length: 6 Value: admin
#513 Length: 6 Value: admin
#514 Length: 10 Value: <oldPassword>
#515 Length: 10 Value: <newPassword>
login:
#2305 Length: 0 Value: (null)
#512 Length: 6 Value: admin
#514 Length: 10 Value: <oldPassword>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment