-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Re-adapted the docker to the develop branch (#26) Many thanks to @BBerastegui, I am not very familiar with docker and this certainly was very useful to add to this project. * Some minor improvements (#31) * Automaticly fix jadx file permissions * Bugfix: Open browser on macOS Browser did not open automatically on macOS. * Show a summary at the end You can add more statistics here, so that the user has a nice summary. * Reduce cmdline output by overwriting progress line * Usage of enumerate instead of manual index mgmt (#32) * Updated readme file, Acknowledgments * Implement arguments (#33) stacoan.py [-h] [-p PATH [PATH ...]] [--disable-browser] [--log-all | --log-errors | --log-warnings] * make a server option in StaCoAn, for reporting and drag and drop interface * Updated readme and docker file for parameters * seperate folder for each project * travis file update * Filetype check on the server (ipa, apk) (#34) * Thread handling and server optimalisations * Update gitignore * Fix typo * fix pyinstaller issue * Fix javascript punctuation issue #6 (comment) * added authors to README.TXT
- Loading branch information
1 parent
89657c7
commit debb867
Showing
16 changed files
with
1,714 additions
and
172 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
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
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,16 +1,9 @@ | ||
#!/bin/bash | ||
python /StaCoAn/src/stacoan.py --disable-browser --enable-server | ||
|
||
# https://unix.stackexchange.com/questions/25945/how-to-check-if-there-are-no-parameters-provided-to-a-command | ||
if [ $# -eq 0 ]; then | ||
echo "[!] Pass at least the name of the app to be analysed." | ||
echo -e "\t - Remember to mount the volume and pass the container path to the app." | ||
exit 1 | ||
fi | ||
|
||
python /StaCoAn/src/stacoan.py $@ | ||
# https://stackoverflow.com/questions/90418/exit-shell-script-based-on-process-exit-code | ||
rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi | ||
|
||
# Redirect to start.html | ||
echo '<meta http-equiv="refresh" content="0; url=/start.html" />' > /StaCoAn/src/report/index.html | ||
cd /StaCoAn/src/report/ && python -m http.server | ||
echo "<script>window.location = 'http://'+window.location.hostname+':8080'+'/start.html';</script>" > /StaCoAn/src/report/index.html | ||
cd /StaCoAn/src/report/ && python -m http.server 8080 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,29 +1,23 @@ | ||
[Development] | ||
development = 0 | ||
|
||
[ProgramConfig] | ||
non_regex_indicator = "^[\w\d_-_:_ _(_)\-\"\'\;\{\}\$]*$" | ||
# Folder where all the generated HTML files will be placed: | ||
report_folder = report | ||
log_file = log.html | ||
# Config folder contains the search words | ||
config_folder = config | ||
src_search_words = src_search_words.txt | ||
db_search_words = db_search_words.txt | ||
exclusion_filename = exclusion_list.txt | ||
# limit_top_findings is the limit on the amount of findings on the start page (first page when program is ran) | ||
limit_top_findings = 3 | ||
apptypes = [".apk", ".ipa"] | ||
src_filetypes = [".java", ".html", ".xml", ".js", ".plist"] | ||
db_filetypes = [".db"] | ||
query_importance = 0 | ||
code_offset = 3 | ||
server_enabled = 0 | ||
loglevel = 3 | ||
APPTYPES = [".apk", ".ipa"] | ||
SRC_FILETYPES = [".java", ".html", ".xml", ".js", ".plist"] | ||
#SRC_FILETYPES = [".java"] | ||
DB_FILETYPES = [".db"] | ||
# QUERY_IMPORTANCE defines from which level results should be shown. | ||
QUERY_IMPORTANCE = 0 | ||
CODE_OFFSET = 3 | ||
[Server] | ||
report_server_port = 8080 | ||
### Logging ### | ||
# Loglevel: | ||
# 3 => log everything | ||
# 2 => log errors and warnings | ||
# 1 => log only errors | ||
loglevel = 3 |
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
Oops, something went wrong.