Skip to content

Commit

Permalink
Update simple_backdoors_exec.rb
Browse files Browse the repository at this point in the history
updated the string 'echo me' to a random text
  • Loading branch information
shipcod3 committed Sep 24, 2015
1 parent 9e6d394 commit 1923696
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/exploits/multi/http/simple_backdoors_exec.rb
Expand Up @@ -57,7 +57,7 @@ def initialize(info={})
end

def check
test = 'echo me'
test = Rex::Text.rand_text_alpha(8)
res = send_request_cgi({
'method' => 'GET',
'uri' => normalize_uri(target_uri.path),
Expand All @@ -66,7 +66,7 @@ def check
'cmd' => test
}
})
if res && res.body =~ /echo me/
if res && res.body =~ /#{test}/
return Exploit::CheckCode::Vulnerable
end
return Exploit::CheckCode::Safe
Expand Down

0 comments on commit 1923696

Please sign in to comment.