This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
gensec-westgate-djw2/hw4/README.md
2024-05-09 13:47:35 -07:00

38 lines
1.3 KiB
Markdown

###### David Westgate 26 April 2024
## HW4 for gensec
This application is a Langchain agent which intends to be helpful at de-obfuscating javascript code. On the web, obfuscated javascript code is common to minimize javascript source file size, before they are sent over the network to the client and also to limit the ability to reverse engineer the function of javascript running on the client from enterprise web applications. The application is programming to ingest javascript source files both from the local machine, as well as from URLs.
### Setup + Run
Install python3, then
```
cd hw4
pip install -r requirnments.txt
python3 app.py
```
### Running
```
python3 app.py
```
### Example Input
Test the ability to de-obfuscate a local javascript source
```
test/test.js
```
*Test file included is sourced from `https://www.gstatic.com/feedback/js/a3hbqvnh5213/api.js` licensed under Apache 2.0*
Test the ability to de-obfuscate a javascript source from the web
```
https://www.gstatic.com/feedback/js/a3hbqvnh5213/api.js
```
Test the ability to identify non-javascript source file locally, ineligable for de-obfuscation
```
test/lorem.txt
```
Test the ability to identify non-javascript source file from the web, ineligable for de-obfuscation
```
https://www.lipsum.com/index.html
```