Auto Login
Hi Team,
i have launched a scan using autologin
arachni http://testfire.net
--plugin=autologin:url=http://testfire.net/bank/login.aspx,params='uid=jsmith&pass...
Off|MY ACCOUNT' -e logout.aspx --report=json:outfile=testfire.json
,i got 74 issues
while i used the below code i got 28 issues
opts.plugins['autologin']= {
'url' => 'http://testfire.net/bank/login.aspx',
'params' => 'uid=jsmith&passw=Demo1234', 'check' =>'Sign
Off|MY ACCOUNT' } opts.exclude << 'logout.aspx' # configure
the json and stdout reports opts.reports = { 'json' => {
'outfile' => 'testfire.json' } }
even login url and params are same, why i am getting different
issues,please let me know the correct code.
Thanks in advance
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
Support Staff 1 Posted by Tasos Laskos on 01 Jul, 2014 11:58 AM
Hi,
Could you show me the entire code please?
Cheers
2 Posted by Ramakrishna on 02 Jul, 2014 05:05 AM
here is code
#!/home/ubuntu/.rvm/rubies/ruby-1.9.3-p392/bin/ruby
encoding: utf-8
class Scan
require 'rubygems' require 'net/smtp' require 'json' require 'arachni' require 'arachni/ui/cli/output'
def launch(url,target) # shut the system up Arachni::UI::Output.mute
end end # End of class
url = "testfire.net"
target = "http://" + url
n = Scan.new n.launch(url,target)
From the above code i have doubt whether autologin is working or not?
Support Staff 3 Posted by Tasos Laskos on 02 Jul, 2014 12:40 PM
You haven't actually loaded the autologin plugin, just provided options for it.
You'll need to load it with:
framework.plugins.load ['autologin']
Cheers
4 Posted by Ramakrishna on 03 Jul, 2014 06:24 AM
Thanks a lot it is working .
Tasos Laskos closed this discussion on 03 Jul, 2014 01:36 PM.