Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
7de7da6
first commit
psk907 Feb 4, 2023
38631bc
Create web app
psk907 Feb 4, 2023
6725a5d
pawnedchecker
psk907 Feb 4, 2023
9b0ebe5
basic ui
reeshaa Feb 4, 2023
eab64e0
Merge branch 'master' of https://github.com/psk907/ksp-hack
reeshaa Feb 4, 2023
87446da
Commit
psk907 Feb 4, 2023
3b878cb
Commit
psk907 Feb 4, 2023
e3728fc
added telegram service
aakashpothepalli Feb 4, 2023
54a3d32
Merge branch 'master' of https://github.com/psk907/ksp-hack
aakashpothepalli Feb 4, 2023
c0a54a1
snapchat service
aakashpothepalli Feb 4, 2023
1b79d66
routes added
reeshaa Feb 4, 2023
811f925
Merge branch 'master' of https://github.com/psk907/ksp-hack
reeshaa Feb 4, 2023
99bc45f
added fb service
aakashpothepalli Feb 4, 2023
8130f2a
Merge branch 'master' of https://github.com/psk907/ksp-hack
aakashpothepalli Feb 4, 2023
b5929fa
pawned pages done
reeshaa Feb 4, 2023
e93fc9a
Merge branch 'master' of https://github.com/psk907/ksp-hack
reeshaa Feb 4, 2023
f900a94
few minor changes in pawned
reeshaa Feb 4, 2023
4a2788b
ugh
reeshaa Feb 4, 2023
9958bdd
Add CORS to snapchat
psk907 Feb 5, 2023
3b67bc8
Remove node modules
psk907 Feb 5, 2023
4019cbc
Ignore nodemodules
psk907 Feb 5, 2023
b832915
Snapchat services integration
psk907 Feb 5, 2023
e649b71
Enable nabbar
psk907 Feb 5, 2023
591c9e8
Fix CORS in telegram
psk907 Feb 5, 2023
bf9bde0
Change page title
psk907 Feb 5, 2023
8d1419e
Add api endpointurls
SupreethRao99 Feb 5, 2023
f64eea9
UI updates,truecaller added , errors fixed
reeshaa Feb 5, 2023
88282b1
Resilve conflicts
reeshaa Feb 5, 2023
8ea2074
wa
reeshaa Feb 5, 2023
1f12bd2
Add chip
psk907 Feb 5, 2023
d23bdd5
Resolve conflicts
psk907 Feb 5, 2023
54e7f6b
upi
reeshaa Feb 5, 2023
b11f56b
Merge branch 'master' of https://github.com/psk907/ksp-hack
psk907 Feb 5, 2023
6ac8756
removed error
reeshaa Feb 5, 2023
2d2619e
Merge branch 'master' of https://github.com/psk907/ksp-hack
reeshaa Feb 5, 2023
bf03b92
minor
reeshaa Feb 5, 2023
832dc86
v minor changes
reeshaa Feb 5, 2023
a968536
Fix HAcveIBeenPawned:
psk907 Feb 5, 2023
dc516a4
Merge branch 'master' of https://github.com/psk907/ksp-hack
psk907 Feb 5, 2023
b1e8bb2
Push code
psk907 Feb 5, 2023
f2d6d8d
Final Commit
psk907 Feb 5, 2023
c8327a4
Add Readme
psk907 Feb 5, 2023
e02ca17
Final
psk907 Feb 5, 2023
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
Binary file added .DS_Store
Binary file not shown.
165 changes: 165 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
node_modules
.env
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
create
environment
virtual
\#
# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ksp-submission
This repository is created for Karnataka State Police Hackathon 2023 - submission collection.
## Team Information
### Team Name -
### Problem Statement -
### Team Name - Chai Tapri Hackers
### Problem Statement - Solution for Crowd Sourcing of Resources
Binary file added services/.DS_Store
Binary file not shown.
23 changes: 23 additions & 0 deletions services/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
23 changes: 23 additions & 0 deletions services/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# API Endpoints

## Facebook
```
https://00a7-119-161-98-68.in.ngrok.io/facebook?fbid=<facebook-id>
```
facebook-id is a unique string attached to a user, eg: supreeth.rao.90

## Instagram
```
https://00a7-119-161-98-68.in.ngrok.io/instagram?email=<email-id>
```

## Truecaller
```
https://00a7-119-161-98-68.in.ngrok.io/truecaller?phno=<phone-number>
```
specify 10 digit phone number without country code

## Snapchat
```
http://localhost:5001/snapsAtLocation?lat=12.845183347300326&long=77.66333436383471
```
Binary file added services/facebook/.DS_Store
Binary file not shown.
13 changes: 13 additions & 0 deletions services/facebook/cookies.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Netscape HTTP Cookie File
# http://curl.haxx.se/rfc/cookie_spec.html
# This is a generated file! Do not edit.

.facebook.com TRUE / TRUE 1710056463 sb iQveY94OFm77XAnRc5rVxV-v
.facebook.com TRUE / TRUE 1710056330 datr iQveYwaD4JbeVAJgkruRimPO
.facebook.com TRUE / TRUE 1676101134 dpr 2
.facebook.com TRUE / TRUE 1707035739 c_user 100004504299567
.facebook.com TRUE / TRUE 1707035739 xs 45%3AOatuB1hhCeLWqQ%3A2%3A1675496461%3A-1%3A5392%3A%3AAcVyXhGQUDB3BYvd86CSKpHNCIVALYOUaL2WWjZwgw
.facebook.com TRUE / TRUE 1683275738 fr 0sJHBPLUtbyNXOccE.AWVeSr4zKgOYTH9qI70_DpSBHCc.Bj3hjc.zW.AAA.0.0.Bj3hjc.AWVROEl1lUQ
.facebook.com TRUE / TRUE 1676104575 wd 1512x804
www.facebook.com FALSE / TRUE 0 m_ls %7B%22c%22%3A%7B%221%22%3A%22HCwAABa2tQsWnOiPqAYTBBbeoKPPg70tAA%22%2C%222%22%3A%22GSwVQBxMAAAWABba4_C9DBYAABV-HEwAABYAFubj8L0MFgAAFh4A%22%2C%225%22%3A%22GSwVNBxMAAAWABbm4_C9DBYAABWAARxMAAAWABbm4_C9DBYAABYeAA%22%2C%2216%22%3A%22FQQVCBmcFQQVDCbm4_C9DBYAABUEFTom5uPwvQwWAAAVBBU8Jujj8L0MFgAAFQQVUibo4_C9DBYAABUEFWAm6OPwvQwWAAAVBBViJubj8L0MFgAAFQQVaibm4_C9DBYAABUEFW4m6OPwvQwWAAAVBBV0Jubj8L0MFgAAFgARAA%22%2C%2226%22%3A%22dummy_cursor%22%2C%2228%22%3A%221675499763%22%7D%2C%22d%22%3A%22161cb22b-f60f-430c-9643-8236d0058096%22%2C%22s%22%3A%221%22%7D
.facebook.com TRUE / TRUE 0 presence C%7B%22t3%22%3A%5B%5D%2C%22utc3%22%3A1675499779302%2C%22v%22%3A1%7D
33 changes: 33 additions & 0 deletions services/facebook/dummy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"Friend_count": null,
"Follower_count": null,
"Following_count": null,
"id": "100004504299567",
"Name": "Supreeth Rao",
"Education": {
"Add high school": "Add college",
"College": "Vidya Shilp Academy",
"More options": "June 7, 2007 - Present"
},
"Work": "Add work",
"Places lived": [
{
"link": "/profile.php?id=106377336067638&eav=AfZhFWtMnGvuqTmVpsY8u_OqSIG4ZzY1Nf14kgtFAtUwmyBfqdGijFCdP9N9Lx4aKbM&paipv=0",
"text": "Bangalore, India",
"type": "Current city"
},
{
"link": "/profile.php?id=106377336067638&eav=AfZhFWtMnGvuqTmVpsY8u_OqSIG4ZzY1Nf14kgtFAtUwmyBfqdGijFCdP9N9Lx4aKbM&paipv=0",
"text": "Bangalore, India",
"type": "Hometown"
}
],
"Contact info\nEdit": "Edit\n099028 00946\nMobile\n/supreeth.rao.90\nFacebook\nraosupreeth00@gmail.com\nEmail\nsupreethrao@aol.com\nEmail",
"Basic info\nEdit": "Edit\nSeptember 9, 2000\nBirthday\nMale\nGender\nEnglish language\nLanguages",
"Other names": "Add a nickname, a birth name...",
"Relationship": "Single\nMore options",
"Family members": "Add family member\nVandana Kulkarni\nMother\nMore options\nShashikanth Rao T\nFather\nMore options",
"About": "Write about yourself",
"Life events": "2012\nbirthday\n2007\nStarted School at Vidya Shilp Academy",
"Favorite quotes": "Add a favorite quotation"
}
23 changes: 23 additions & 0 deletions services/facebook/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import uvicorn
from fastapi import FastAPI
import os
from facebook_scraper import get_profile
from pprint import pprint
import requests

# load environment variables
port = 8000

# initialize FastAPI
app = FastAPI()

@app.get("/facebook")
def fb(fbid:str):
try:
return get_profile(fbid, cookies="cookies.txt")
except:
return {"message":"User not found"}


if __name__ == "__main__":
uvicorn.run("main:app", host="0.0.0.0", port=port, reload=False)
47 changes: 47 additions & 0 deletions services/facebook/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
anyio==3.6.2
appdirs==1.4.4
beautifulsoup4==4.11.2
bs4==0.0.1
certifi==2022.12.7
charset-normalizer==3.0.1
click==8.1.3
cssselect==1.2.0
dateparser==1.1.7
demjson3==3.0.6
facebook-scraper==0.2.59
fake-useragent==1.1.1
fastapi==0.89.1
Flask==2.2.2
flastapi==0.1.0
h11==0.14.0
idna==3.4
importlib-metadata==6.0.0
itsdangerous==2.1.2
Jinja2==3.1.2
lxml==4.9.2
MarkupSafe==2.1.2
parse==1.19.0
pydantic==1.10.4
pyee==8.2.2
pyppeteer==1.0.2
pyquery==2.0.0
python-dateutil==2.8.2
pytz==2022.7.1
pytz-deprecation-shim==0.1.0.post0
regex==2022.10.31
requests==2.28.2
requests-html==0.10.0
six==1.16.0
sniffio==1.3.0
soupsieve==2.3.2.post1
starlette==0.22.0
tqdm==4.64.1
typing_extensions==4.4.0
tzdata==2022.7
tzlocal==4.2
urllib3==1.26.14
uvicorn==0.20.0
w3lib==2.1.1
websockets==10.4
Werkzeug==2.2.2
zipp==3.12.0
Binary file added services/hvibeenpwned/chromedriver_mac_arm64.zip
Binary file not shown.
38 changes: 38 additions & 0 deletions services/hvibeenpwned/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[{
'Name': 'bigbasket',
'Title': 'bigbasket',
'Domain': 'bigbasket.com',
'BreachDate': '2020-10-14',
'AddedDate': '2021-04-26T04:00:10Z',
'ModifiedDate': '2021-04-26T06:15:01Z',
'PwnCount': 24500011,
'Description': 'In October 2020, the Indian grocery platform <a href="https://indianexpress.com/article/business/business-others/bigbasket-data-breach-user-details-leaked-dark-web-cyber-crime-7009578/" target="_blank" rel="noopener">bigbasket suffered a data breach that exposed over 20 million customer records</a>. The data was originally sold before being leaked publicly in April the following year and included email, IP and physical addresses, names, phones numbers, dates of birth passwords stored as Django(SHA-1) hashes.',
'LogoPath': 'https://haveibeenpwned.com/Content/Images/PwnedLogos/bigbasket.png',
'DataClasses': ['Dates of birth', 'Email addresses', 'IP addresses', 'Names', 'Passwords', 'Phone numbers', 'Physical addresses'],
'IsVerified': True,
'IsFabricated': False,
'IsSensitive': False,
'IsRetired': False,
'IsSpamList': False,
'IsMalware': False
},

{'Name': 'Canva',
'Title': 'Canva',
'Domain': 'canva.com',
'BreachDate': '2019-05-24',
'AddedDate': '2019-08-09T14:24:01Z',
'ModifiedDate': '2019-08-09T14:24:01Z',
'PwnCount': 137272116,
'Description': 'In May 2019, the graphic design tool website <a href="https://support.canva.com/contact/customer-support/may-24-security-incident-faqs/" target="_blank" rel="noopener">Canva suffered a data breach</a> that impacted 137 million subscribers. The exposed data included email addresses, usernames, names, cities of residence and passwords stored as bcrypt hashes for users not using social logins. The data was provided to HIBP by a source who requested it be attributed to "JimScott.Sec@protonmail.com".',
'LogoPath': 'https://haveibeenpwned.com/Content/Images/PwnedLogos/Canva.png',
'DataClasses': ['Email addresses', 'Geographic locations', 'Names', 'Passwords', 'Usernames'],
'IsVerified': True,
'IsFabricated': False,
'IsSensitive': False,
'IsRetired': False,
'IsSpamList': False,
'IsMalware': False
},
{
'Name': 'DominosIndia', 'Title': "Domino's India", 'Domain': 'dominos.co.in', 'BreachDate': '2021-03-24', 'AddedDate': '2021-06-03T02:18:39Z', 'ModifiedDate': '2021-06-20T03:20:56Z', 'PwnCount': 22527655, 'Description': 'In April 2021, <a href="https://www.bleepingcomputer.com/news/security/dominos-india-discloses-data-breach-after-hackers-sell-data-online/" target="_blank" rel="noopener">13TB of compromised Domino\'s India appeared for sale on a hacking forum</a> after which the company acknowledged a major data breach they dated back to March. The compromised data included 22.5 million unique email addresses, names, phone numbers, order histories and physical addresses.', 'LogoPath': 'https://haveibeenpwned.com/Content/Images/PwnedLogos/Dominos.png', 'DataClasses': ['Email addresses', 'Names', 'Phone numbers', 'Physical addresses', 'Purchases'], 'IsVerified': True, 'IsFabricated': False, 'IsSensitive': False, 'IsRetired': False, 'IsSpamList': False, 'IsMalware': False}, {'Name': 'Zynga', 'Title': 'Zynga', 'Domain': 'zynga.com', 'BreachDate': '2019-09-01', 'AddedDate': '2019-12-19T04:54:45Z', 'ModifiedDate': '2020-01-11T00:41:51Z', 'PwnCount': 172869660, 'Description': 'In September 2019, game developer <a href="https://www.cnet.com/news/words-with-friends-hack-reportedly-exposes-data-of-more-than-200m-players/" target="_blank" rel="noopener">Zynga (the creator of Words with Friends) suffered a data breach</a>. The incident exposed 173M unique email addresses alongside usernames and passwords stored as salted SHA-1 hashes. The data was provided to HIBP by <a href="https://dehashed.com/" target="_blank" rel="noopener">dehashed.com</a>.', 'LogoPath': 'https://haveibeenpwned.com/Content/Images/PwnedLogos/Zynga.png', 'DataClasses': ['Email addresses', 'Passwords', 'Phone numbers', 'Usernames'], 'IsVerified': True, 'IsFabricated': False, 'IsSensitive': False, 'IsRetired': False, 'IsSpamList': False, 'IsMalware': False}]
Loading