generated from NYUAppSec/appsec_hw2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtesting.txt
22 lines (18 loc) · 893 Bytes
/
testing.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- Path errors [linux, win]
-> $ export PYTHONPATH="${PYTHONPATH}:/mnt/c/Users/Raj/Documents/NYU/Academic/Senior_2020-22/2021-2022/Fall_2022/App_Security/Assignments/homework-2-RajanBharaj"
-> $ set PYTHONPATH=%PYTHONPATH%;C:\Users\Raj\Documents\NYU\Academic\Senior_2020-22\2021-2022\Fall_2022\App_Security\Assignments\homework-2-RajanBharaj
- Settings errors [linux, win]
-> $ export DJANGO_SETTINGS_MODULE=GiftcardSite.settings
-> $ set DJANGO_SETTINGS_MODULE=GiftcardSite.settings
- Database interaction
-> $ sqlite3 db.sqlite3
-> sqlite> .schema LegacySite_card;
-> sqlite> .exit
- Clean whole database: python manage.py flush
- Restore original values; python import_dbs.py
- Self created users, pass's
-> victim@bad.edu, hello123
-> attacker@good.edu, secure123
-> observer@gmail.com, lookatme123
- Testing
-> python manage.py dumpdata LegacySite > LegacySite/fixtures/testdata.json