Skip to content

Commit eacf70a

Browse files
committed
Update mybb_get_type_db.rb
26.05.2014 23:26 I deleted mimicking IE11
1 parent e26dee5 commit eacf70a

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

modules/auxiliary/gather/mybb_get_type_db.rb

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,13 @@ def initialize(info = {})
3535

3636
def check
3737
begin
38-
uri = normalize_uri(target_uri.path, '/index.php?intcheck=1')
38+
uri = normalize_uri(target_uri.path, 'index.php')
3939
res = send_request_cgi(
4040
{
4141
'method' => 'GET',
4242
'uri' => uri,
4343
'vars_get' => {
44-
'Accept' => 'text/html, application/xhtml+xml, */*',
45-
'Accept-Language' => 'ru-RU',
46-
'User-Agent' => 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko',
47-
'Accept-Encoding' => 'gzip, deflate',
48-
'Connection' => 'Close',
49-
'Cookie' => "mybb[lastvisit]="+Time.now.to_i.to_s+"; mybb[lastactive]="+Time.now.to_i.to_s+"; loginattempts=1"
44+
'intcheck' => 1
5045
}
5146
})
5247
if res.nil?
@@ -92,18 +87,13 @@ def check
9287

9388

9489
def run
95-
uri = normalize_uri(target_uri.path, '/memberlist.php?letter=-1')
90+
uri = normalize_uri(target_uri.path, 'memberlist.php')
9691
response = send_request_cgi(
9792
{
9893
'method' => 'GET',
9994
'uri' => uri,
10095
'vars_get' => {
101-
'Accept' => 'text/html, application/xhtml+xml, */*',
102-
'Accept-Language' => 'ru-RU',
103-
'User-Agent' => 'Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko',
104-
'Accept-Encoding' => 'gzip, deflate',
105-
'Connection' => 'Close',
106-
'Cookie' => "mybb[lastvisit]="+Time.now.to_i.to_s+"; mybb[lastactive]="+Time.now.to_i.to_s+"; loginattempts=1"
96+
'letter' => -1
10797
}
10898
})
10999
if response.nil?

0 commit comments

Comments
 (0)