Skip to content

Commit

Permalink
v1.4 Release.
Browse files Browse the repository at this point in the history
  • Loading branch information
mazen160 committed Nov 8, 2017
1 parent 05918dd commit f3f6a53
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 8 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,19 @@

### Changelog:-

* v1.4:
Additions/Features:-
[+] Added --proxy-file and --user-agents-file options.
[+] Improved console output.
[+] Added pattern for CVE-2017-12616.

Fixed Bugs:-
[*] Fixed a bug in proxying requests - Thanks Justin Kennedy @jstnkndy.

Known Bugs/Issues:-
None


* v1.3:
Additions/Features:-
[+] BFAC now supports multithrading.
Expand Down
25 changes: 18 additions & 7 deletions bfac
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# An automated tool that checks for backup artifacts
# that may disclose the web-application's source code.
# * Version:
# v1.3
# v1.4
# * Homepage:
# https://github.com/mazen160/bfac
# * Author:
Expand Down Expand Up @@ -59,7 +59,7 @@ def version():
Returns current version.
"""

version = "1.3"
version = "1.4"
return(version)


Expand Down Expand Up @@ -1126,11 +1126,19 @@ class ConsoleOutput:
sys.stdout.write('\033[1K')
sys.stdout.write('\033[0G')

def print_base_url(self, url):
def print_base_url(self, url,
current_queue_counter=None, urls_queue_size=None):
if self.console_output_check() == 1:
return(1)
with threading.Lock():
sys.stdout.write("%s URL: %s\n" % (symbols.info, url))
if urls_queue_size == 1:
sys.stdout.write("\n\n%s URL: %s\n" % (symbols.info, url))
else:
sys.stdout.write("\n\n%s [%s/%s] URL: %s\n" % (
symbols.info,
current_queue_counter,
urls_queue_size,
url))
sys.stdout.flush()

def testing_url_message(self,
Expand Down Expand Up @@ -1752,10 +1760,13 @@ def main():
testedjar = queue.Queue()
findings_queue = queue.Queue()

for url in URLs_list:
ConsoleOutput(notext=notext).print_base_url(url)
for url in enumerate(URLs_list):
ConsoleOutput(notext=notext).print_base_url(
url[1],
current_queue_counter=(url[0] + 1),
urls_queue_size=len(URLs_list))
test_url(
url,
url[1],
dvcs_test=dvcs_test,
testing_level=testing_level,
use_content_length_checks=use_content_length_checks,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
setup(
name='bfac',
packages=find_packages(),
version='1.3',
version='1.4',
scripts=['bfac'],
description="Advanced Backup-File Artifacts Testing for Web-Applications",
long_description="An automated tool that checks for backup artifacts " +
Expand Down

0 comments on commit f3f6a53

Please # to comment.