Skip to content

Commit da516de

Browse files
committed
Merge branch 'community'
2 parents 0cae558 + eb871db commit da516de

572 files changed

Lines changed: 25263 additions & 27450 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,14 @@ nosetests.xml
3434
.mr.developer.cfg
3535
.project
3636
.pydevproject
37+
pushReports.py
38+
*.swp
3739

3840
# Tests nodejs
3941
node_modules
4042

4143
# Couch
4244
.couchadmin
45+
46+
# Ignore faraday server pid
47+
server/.faraday-server.pid

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ Project contributors
2424
* Thierry Beauquier
2525
* Brice Samulenok
2626
* Ulisses Albuquerque
27+
* Alejandro Parodi

RELEASE.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,24 @@ Please run ./faraday.py --update
1010
New features in the latest update
1111
=====================================
1212

13+
August 12, 2016:
14+
---
15+
* Added Faraday Server
16+
* Improved performance in web UI
17+
* Added some basic APIs to Faraday Server
18+
* Added licenses management section in web UI
19+
* Totally removed QT3, GTK is now the only GUI
20+
* Deprecated FileSystem databses: now Faraday works exclusively with Faraday Server and CouchDB
21+
* Added a button to go to the Faraday Web directly from GTK
22+
* Fixed bug when deleting objects from Faraday Web
23+
* Fixed bug where icons where not copied to correct folder on initialization
24+
* Fixed bug where current workspace wouldn't correspond to selected workspace on the sidebar on GTK
25+
* Fixed bug in 'Refresh Workspace' button on GTK
26+
* Fixed bug where Host Sidebar and Statusbar information wasn't correctly updated on GTK
27+
* Fixed bug in service editing
28+
* Fixed sqlmap plugin
29+
* Fixed metapsloit plugin
30+
1331
Jul 1, 2016:
1432
---
1533
* GTK is the default interface now.

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.22
1+
2.0.0

bin/fplugin

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,40 @@
55
Faraday Penetration Test IDE
66
Copyright (C) 2013 Infobyte LLC (http://www.infobytesec.com/)
77
See the file 'doc/LICENSE' for the license information
8-
98
'''
10-
import re
9+
1110
import os
12-
import pprint
13-
import sys
1411
import argparse
15-
import shlex
1612

1713
if __name__ == '__main__':
18-
parser = argparse.ArgumentParser()
19-
20-
# executes received code
21-
parser.add_argument('-e')
22-
# where to store fplugin's output
23-
parser.add_argument('-o')
14+
description = (
15+
'Using our plugin you can do different actions in the command line'
16+
' and interact with Faraday. Faraday comes with some presets for bulk'
17+
' actions such as object removal, get object information, etc.')
18+
19+
parser = argparse.ArgumentParser(description=description)
20+
21+
parser.add_argument(
22+
'-e',
23+
'--execute',
24+
help='Execute code received in this parameter.'
25+
' Example:\n./fplugin -e "for h in api.__model_controller.getAllHosts(): print h.name"')
26+
27+
parser.add_argument(
28+
'-o',
29+
'--output',
30+
help='Store output of fplugin in a file.')
31+
2432
# file with code to execute
25-
parser.add_argument('-f')
26-
27-
#get all hosts
28-
#./fplugin -e 'for h in api.__model_controller.getAllHosts(): print h.name'
29-
#create a new host
30-
#./fplugin -e 'for h in api.createAndAddHost("8.8.8.8","Linux")'
31-
#get all creds
32-
#get all hostname
33-
#get all ip port http/https
33+
parser.add_argument(
34+
'-f',
35+
'--file',
36+
help='File with code to execute.'
37+
' Example:\n./fplugin -f getAllIps.py ')
3438

3539
args, unknown = parser.parse_known_args()
36-
37-
if args.o:
38-
if os.path.isfile(args.o):
39-
with open(args.o) as f:
40+
if args.output:
41+
if os.path.isfile(args.output):
42+
with open(args.output) as f:
4043
data = f.read()
4144
print data
42-
43-

config/default.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<faraday>
33

44
<appname>Faraday - Penetration Test IDE</appname>
5-
<version>1.0.22</version>
5+
<version>2.0.0</version>
66
<debug_status>0</debug_status>
77
<font>-Misc-Fixed-medium-r-normal-*-12-100-100-100-c-70-iso8859-1</font>
88
<home_path>~/</home_path>

config/globals.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,20 @@
1111
CONST_FARADAY_HOME_PATH = '~/.faraday'
1212
CONST_FARADAY_PLUGINS_PATH = 'plugins'
1313
CONST_FARADAY_PLUGINS_REPO_PATH = 'plugins/repo'
14-
CONST_FARADAY_QTRC_PATH = 'deps/qtrc'
1514
CONST_FARADAY_IMAGES = 'images/'
1615
CONST_FARADAY_LOGS_PATH = 'logs/'
1716
CONST_FARADAY_FOLDER_LIST = [ "config", "data", "images",
1817
"persistence", "plugins",
1918
"report", "temp", "zsh", "logs" ]
2019

2120

22-
CONST_USER_QT_PATH = '~/.qt/'
23-
CONST_USER_QTRC_PATH = '~/.qt/qtrc'
24-
CONST_USER_QTRC_BACKUP = '~/.qt/.qtrc_original.bak'
25-
CONST_FARADAY_QTRC_BACKUP = '~/.qt/.qtrc_faraday.bak'
2621
CONST_FARADAY_ZSHRC = "zsh/.zshrc"
2722
CONST_FARADAY_ZSH_FARADAY = "zsh/faraday.zsh"
2823
CONST_FARADAY_ZSH_OUTPUT_PATH = "zsh/output"
2924
CONST_FARADAY_BASE_CFG = "config/default.xml"
3025
CONST_FARADAY_USER_CFG = "config/config.xml"
31-
CONST_FARADAY_LIB_HELPERS = "shell/core/_helpers.so"
32-
CONST_BLACKDBS = ('cwe','reports')
26+
CONST_LICENSES_DB = "faraday_licenses"
27+
CONST_BLACKDBS = ('cwe','reports', CONST_LICENSES_DB)
3328

3429
CONST_USER_HOME = "~"
3530
CONST_USER_ZSHRC = "~/.zshrc"

controllers/change.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@ def _notify_model_object_change(self, change, obj):
6060
elif (change.getChangeType() != CHANGETYPE.UNKNOWN):
6161
model.guiapi.notification_center.editHost(host)
6262

63-
def manageConnectionLost(self):
64-
"""All it does is send a notification to the notification center"""
65-
model.guiapi.notification_center.CouchDBConnectionProblem()
63+
64+
def revertToNoWorkspace(self):
65+
model.guiapi.notification_center.WorkspaceProblem()
6666

6767
def watch(self, mapper, dbConnector):
6868
self.mapper_manager = mapper
6969
self.dbConnector = dbConnector
7070
self.changesWatcher = ChangeWatcher(dbConnector.waitForDBChange)
7171
dbConnector.setChangesCallback(self.loadChange)
72-
dbConnector.setCouchExceptionCallback(self.manageConnectionLost)
72+
dbConnector.setNoWorkspacesCallback(self.revertToNoWorkspace)
7373
self.changesWatcher.start()
7474

7575
def unwatch(self):

default.keytab

Lines changed: 0 additions & 138 deletions
This file was deleted.

deps/qtrc

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)