Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
jedi
smrtlink
Commits
a55e2195
Commit
a55e2195
authored
Sep 26, 2015
by
/jdi/
Browse files
sniffed actions
parent
671a9df9
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Program.cpp
View file @
a55e2195
...
...
@@ -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
(
"
\n
Receive Body:
\t
"
);
utils
::
printHex
(
p
.
getBody
());
printf
(
"
\n
"
);
for
(
auto
a
:
p
.
getPayload
())
{
dataset
d
=
a
.
second
;
printf
(
"#%d
\t
Length: %d Value: %s
\n
"
,
d
.
type
,
d
.
len
,
&
d
.
value
[
0
]);
}
printf
(
"
\n
"
);
printf
(
"
\n
"
);
printf
(
"
\n
"
);
return
0
;
};
...
...
src/dict.txt
0 → 100644
View file @
a55e2195
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment