forked from infobyte/faraday
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
113 changed files
with
3,768 additions
and
4,749 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,5 @@ Project contributors | |
* Brice Samulenok | ||
* Ulisses Albuquerque | ||
* Alejandro Parodi | ||
* Federico Fernandez | ||
* xtr4nge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.1.0 | ||
2.2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python2.7 | ||
# -*- coding: utf-8 -*- | ||
|
||
''' | ||
Faraday Penetration Test IDE | ||
Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) | ||
Copyright (C) 2016 Infobyte LLC (http://www.infobytesec.com/) | ||
See the file 'doc/LICENSE' for the license information | ||
''' | ||
for host in api.__model_controller.getAllHosts(): | ||
print "Del host: " + host.name | ||
api.delHost(host.id) | ||
|
||
from persistence.server import server, models | ||
|
||
def main(workspace=''): | ||
|
||
for host in models.get_hosts(workspace): | ||
print('Delete Host:' + host.name) | ||
models.delete_host(workspace, host.id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python2.7 | ||
# -*- coding: utf-8 -*- | ||
|
||
''' | ||
Faraday Penetration Test IDE | ||
Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) | ||
Copyright (C) 2016 Infobyte LLC (http://www.infobytesec.com/) | ||
See the file 'doc/LICENSE' for the license information | ||
''' | ||
|
||
for host in api.__model_controller.getAllHosts(): | ||
|
||
for i in host.getAllInterfaces(): | ||
for s in i.getAllServices(): | ||
if s.getStatus() != "open": | ||
print "delService" + s.name + "from int:" + i.name | ||
api.delServiceFromInterface(host.id,i.id,s.id) | ||
from persistence.server import server, models | ||
|
||
def main(workspace=''): | ||
|
||
for service in models.get_services(workspace): | ||
if service.status != 'open' and service.status != 'opened': | ||
print('Deleted service: ' + service.name) | ||
models.delete_service(workspace, service.id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,22 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python2.7 | ||
# -*- coding: utf-8 -*- | ||
|
||
''' | ||
Faraday Penetration Test IDE | ||
Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) | ||
Copyright (C) 2016 Infobyte LLC (http://www.infobytesec.com/) | ||
See the file 'doc/LICENSE' for the license information | ||
''' | ||
|
||
import re | ||
regex="ssl\-cert|ssl\-date|Traceroute Information|TCP\/IP Timestamps Supported|OS Identification|Common Platform Enumeration" | ||
c=0 | ||
for host in api.__model_controller.getAllHosts(): | ||
hostnames="" | ||
for v in host.getVulns(): | ||
if re.match(regex,v.name) is not None: | ||
api.delVulnFromHost(v.id,host.id) | ||
c+=1 | ||
from persistence.server import server, models | ||
|
||
def main(workspace=''): | ||
|
||
for i in host.getAllInterfaces(): | ||
for s in i.getAllServices(): | ||
for v in s.getVulns(): | ||
if re.match(regex,v.name) is not None: | ||
api.delVulnFromService(v.id,host.id,s.id) | ||
c+=1 | ||
regex = ( | ||
r"ssl\-cert|ssl\-date|Traceroute Information|TCP\/IP Timestamps Supported" | ||
r"|OS Identification|Common Platform Enumeration") | ||
|
||
print "Vulnerabilities deleted %s" % c | ||
for vuln in models.get_all_vulns(workspace): | ||
if re.findall(regex, vuln.name, ) != []: | ||
print("Delete Vuln: " + vuln.name) | ||
models.delete_vuln(workspace, vuln.id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python2.7 | ||
# -*- coding: utf-8 -*- | ||
|
||
''' | ||
Faraday Penetration Test IDE | ||
Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) | ||
Copyright (C) 2016 Infobyte LLC (http://www.infobytesec.com/) | ||
See the file 'doc/LICENSE' for the license information | ||
''' | ||
|
||
for host in api.__model_controller.getAllHosts(): | ||
for c in host.getCreds(): | ||
print host.name+"|0|"+c.username+ "|"+c.password | ||
|
||
for i in host.getAllInterfaces(): | ||
for s in i.getAllServices(): | ||
for c in s.getCreds(): | ||
print host.name+"|"+str(s.getPorts()) + "|"+c.username+ "|"+c.password | ||
from persistence.server import server, models | ||
|
||
def main(workspace=''): | ||
for credential in models.get_credentials(workspace): | ||
print(credential.username + ' : ' + credential.password) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python2.7 | ||
# -*- coding: utf-8 -*- | ||
|
||
''' | ||
Faraday Penetration Test IDE | ||
Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) | ||
Copyright (C) 2016 Infobyte LLC (http://www.infobytesec.com/) | ||
See the file 'doc/LICENSE' for the license information | ||
''' | ||
for h in api.__model_controller.getAllHosts(): print h.name | ||
|
||
from persistence.server import server, models | ||
|
||
def main(workspace=''): | ||
for host in models.get_hosts(workspace): | ||
print(host.name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python2.7 | ||
# -*- coding: utf-8 -*- | ||
|
||
''' | ||
Faraday Penetration Test IDE | ||
Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) | ||
Copyright (C) 2016 Infobyte LLC (http://www.infobytesec.com/) | ||
See the file 'doc/LICENSE' for the license information | ||
''' | ||
|
||
for host in api.__model_controller.getAllHosts(): | ||
if len(host.getAllInterfaces()) > 1: | ||
print host.name | ||
from persistence.server import server, models | ||
|
||
def main(workspace=''): | ||
for interface in models.get_interfaces(workspace): | ||
print(interface.ipv4['address']) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python2.7 | ||
# -*- coding: utf-8 -*- | ||
|
||
''' | ||
Faraday Penetration Test IDE | ||
Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) | ||
Copyright (C) 2016 Infobyte LLC (http://www.infobytesec.com/) | ||
See the file 'doc/LICENSE' for the license information | ||
''' | ||
for h in api.__model_controller.getAllHosts(): print h.name+"|"+h.getOS() | ||
|
||
from persistence.server import server, models | ||
|
||
def main(workspace=''): | ||
for host in models.get_hosts(workspace): | ||
print(host.os) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python2.7 | ||
# -*- coding: utf-8 -*- | ||
|
||
''' | ||
Faraday Penetration Test IDE | ||
Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) | ||
Copyright (C) 2016 Infobyte LLC (http://www.infobytesec.com/) | ||
See the file 'doc/LICENSE' for the license information | ||
''' | ||
webs={} | ||
for host in api.__model_controller.getAllHosts(): | ||
|
||
for i in host.getAllInterfaces(): | ||
for s in i.getAllServices(): | ||
for p in s.getPorts(): | ||
if str(p) == '23': | ||
webs[host.name]=1 | ||
from persistence.server import server, models | ||
|
||
for k,v in webs.iteritems(): | ||
print k | ||
def main(workspace=''): | ||
|
||
for service in models.get_services(workspace): | ||
if 23 in service.ports: | ||
print(service.name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
#!/usr/bin/env python | ||
#!/usr/bin/env python2.7 | ||
# -*- coding: utf-8 -*- | ||
|
||
''' | ||
Faraday Penetration Test IDE | ||
Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/) | ||
Copyright (C) 2016 Infobyte LLC (http://www.infobytesec.com/) | ||
See the file 'doc/LICENSE' for the license information | ||
''' | ||
webs={} | ||
for host in api.__model_controller.getAllHosts(): | ||
|
||
for i in host.getAllInterfaces(): | ||
for s in i.getAllServices(): | ||
for p in s.getPorts(): | ||
if str(p) == '5900': | ||
webs[host.name]=1 | ||
from persistence.server import server, models | ||
|
||
for k,v in webs.iteritems(): | ||
print k | ||
def main(workspace=''): | ||
|
||
for service in models.get_services(workspace): | ||
if 5900 in service.ports: | ||
print(service.name) |
Oops, something went wrong.