Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOS screenshot ver 1 #61

Closed
wants to merge 31 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
7dbe5c3
use multi-page form data
sophiestephenson Apr 3, 2023
0952dd1
all form pieces exist (and look bad)
sophiestephenson Apr 3, 2023
7a82cb9
make forms look a bit better (mostly on dual use), get apps from phone
sophiestephenson Apr 3, 2023
1602940
many aesthetic improvements - header, dropdowns, page overviews, etc
sophiestephenson Apr 4, 2023
8d8b8a9
account list looks much better
sophiestephenson Apr 4, 2023
97705c6
added test icons on details>summary, not hooked up to anything
sophiestephenson Apr 4, 2023
02a5939
Permission names as section labels (backend is broken)
sophiestephenson Apr 6, 2023
24ea1b2
Adaptive scan instructions page
sophiestephenson Apr 6, 2023
df2a41b
basic data formatting in the summary page (bullet points)
sophiestephenson Apr 10, 2023
55196bd
app info in forms
sophiestephenson Apr 10, 2023
721da44
switch to fancy radio buttons
sophiestephenson Apr 10, 2023
5131ef0
Add app details to summary, minor css stuff
sophiestephenson Apr 11, 2023
e82cbbf
Click button to generate and view printout!
sophiestephenson Apr 11, 2023
8c5abf8
add more accounts and account icons
sophiestephenson Apr 11, 2023
f572e77
printout has sample data in it
sophiestephenson Apr 11, 2023
0d94d69
dual use apps and spyware apps programmatically printed out
sophiestephenson Apr 11, 2023
412cf5d
put a screenshot in the printout (fake, hardcoded screenshot). add ac…
sophiestephenson Apr 12, 2023
c0cfe98
make scan details at the top into a table
sophiestephenson Apr 12, 2023
40ccd8e
basic summaries for apps
sophiestephenson Apr 13, 2023
76361a1
add basic account summary
sophiestephenson Apr 13, 2023
451a3be
add overall summary, present it in the summary page as well
sophiestephenson Apr 18, 2023
e7c3c32
Match questions in report to the questions asked in the form
sophiestephenson Apr 19, 2023
3c952ea
add fake screenshots
sophiestephenson Apr 19, 2023
c07ffa2
TBH I don't know what I changed
sophiestephenson Jan 26, 2024
b20d56f
Fix missing dependency required for isdi
betameta123 Feb 2, 2024
10ef4ea
Merge pull request #2 from stopipv/main
sophiestephenson Feb 6, 2024
f8370bb
Merge branch 'main' into python3.10_support
sophiestephenson Feb 6, 2024
806e20a
Merge pull request #1 from betameta123/python3.10_support
sophiestephenson Feb 6, 2024
30b7a3e
Merge branch 'main' into consultant-led-ui
sophiestephenson Feb 6, 2024
774c068
Merge pull request #3 from sophiestephenson/consultant-led-ui
sophiestephenson Feb 6, 2024
4045334
Scanning works for iphones again
sophiestephenson Feb 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ error.txt
## To be removed
toremove/

reports/*.csv
reports/*
screenshots/*
apps/
data/
static_data/app-info.db.gz
Expand All @@ -154,3 +155,5 @@ __MACOSX
*~test
*.apk
dumps/android_scan.logs

*.pkl
2 changes: 2 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

from runcmd import catch_err, run_command

SCREENSHOT_LOCATION = "/Users/Soph/research/evidence-project/ips-evidence-collector/screenshots/"

DEV_SUPPRTED = ['android', 'ios'] # 'windows', 'mobileos', later
THIS_DIR = Path(__file__).absolute().parent

Expand Down
548 changes: 537 additions & 11 deletions evidence_collection.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion isdi
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ if __name__ == "__main__":
logger.setLevel(logging.ERROR)
logger.addHandler(handler)
PORT = 6200 if not config.TEST else 6202
Timer(1, open_browser).start()
#Timer(1, open_browser).start()
app.run(host="0.0.0.0", port=PORT, debug=config.DEBUG, use_reloader= False)
4 changes: 3 additions & 1 deletion parse_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@

import pandas as pd
from rsonlite import simpleparse

import config


def count_lspaces(l):
# print(">>", repr(l))
return re.search(r'\S', l).start()
Expand Down Expand Up @@ -582,7 +584,7 @@ def installed_apps(self):
if self.df is None:
return []
print("parse_dump (installed_apps): >>", self.df.columns, len(self.df))
return self.df['appId'].to_list()
return self.df['CFBundleIdentifier'].to_list()


if __name__ == "__main__":
Expand Down
4 changes: 2 additions & 2 deletions phone_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def find_spyapps(self, serialno, from_dump=True):
)
r = blocklist.app_title_and_flag(
pd.DataFrame({'appId': installed_apps}),
offstore_apps=self.get_offstore_apps(serialno, from_device=from_device),
system_apps=self.get_system_apps(serialno, from_device=from_device)
offstore_apps=self.get_offstore_apps(serialno),
system_apps=self.get_system_apps(serialno)
)
r['title'] = r.title.fillna('')
if self.device_type == 'android':
Expand Down
12 changes: 7 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# appJar==0.90.0
alembic==1.8.1
autopep8==2.0.1
banal==1.0.6
click==8.1.3
dataset==1.5.2
decorator==5.1.1
flask
Flask>=2.2.5
Flask-Migrate>=2.5.2
Flask-SQLAlchemy>=2.5.1
Flask-WTF>=0.14.2
Flask-WTF==1.1.1
greenlet>=2.0.1
importlib-metadata==5.1.0
infinity==1.5
Expand All @@ -29,8 +31,8 @@ SQLAlchemy==1.4.44
SQLAlchemy-Utils==0.38.3
tomli==2.0.1
validators==0.20.0
Werkzeug==2.3.8
WTForms
WTForms-Alchemy
WTForms-Components
Werkzeug==2.3.7
WTForms==2.2.1
WTForms-Alchemy==0.16.9
WTForms-Components==0.10.4
zipp==3.11.0
Loading
Loading