Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
db.sqlite3

venv/
try.py
Binary file not shown.
Binary file added Documents and Presentation/Screenshot.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
36 changes: 36 additions & 0 deletions Instructions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
SPOOR
TEAM – SCRIPT KIDDIES

Note:
1. Make sure that you have python installed in your machine.
2. Install all dependencies before running the module.


1. Go to the Main Folder

> pip3 install -r requirements.txt

> python3 manage.py runserver

2. Now open the browser and enter the address 127.0.0.1:8000

Domain Scan Module

1. Now select the scan tab and Enter your Case Number and Enter the domain details in the Domain Tab and the Full URL in the Link Tab and select Scan.

2. Now the scan will be Initiated and the results will be displayed.

3. Please be patient as the scan takes time to get results

4. In the Email Header Analysis, Enter the Email header and you will get the Details categorized from the email header.

5. In the Malware Analysis, Upload the Malware from the Sample Malware Folder (Caution!!! Use a Virtual Machine as it a Windows Based Malware) and the Details from the malware will be displayed

6. In the Spam Detection Module, Open the file spam.ipynb file. Enter the Message in "your_message" variable as you want to detect it as Spam or not.




Refer our Demo Video:

https://youtu.be/0OmTgwTaBW4
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 - Script Kiddies
### Problem Statement - Crowd Sourcing
3 changes: 3 additions & 0 deletions Trawler (1).rdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
full address:s:20.163.204.209:3389
prompt for credentials:i:1
administrative session:i:1
39 changes: 39 additions & 0 deletions Trawler.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
-----BEGIN RSA PRIVATE KEY-----
MIIG4wIBAAKCAYEAm6DjMWTCU7vyaETqXpY5wZyqKcNeCAnxpc2UfiL2EDaC+7kZ
GWcwXqHRV8IZJjTV8ya1K+mD1s+esxvxyoaIFbVK2/8iFA3RGpe4b5f0oNWl+7+G
Cr81qHw8+2QCwnh6EKF8OOynrVuTP8MWVfxToXH4hFWNyjTzv8Or67Gr2/YwVJWX
SR8wI41oiDceGSZgtfPCWmq2M7siQ0hDUZLd8ScPk9x2lgPZV64+j2r4JszC+P9j
sLt0nvIzLFoL+wkd3lgb+DODBNQBrWp3+9/2GQJiXBNo2aw44YQclOBdE6+YFWQA
t7snvcqqtF1N7mzrRMjTNO48jpOpmDhwFVbi+fmnIyUbbx/p1rJQwtiwqxA5Lh1N
YyNxmF75iXDOuE4KFnFCg8klPOEjZMzqyY6B330l7MxLE0xJJMPYtblM4B5CVXrt
D4oqWBsbI4BpjDxLigAGNIVpdLSR5ttEPJj45XKENEZRNsGYJtsASjiFxqyD/Sqp
xrvInPhNQxnVs6utAgMBAAECggGAbrieKqwG3U/f/HLbU4QJf0eYgLHwGkQI2e9S
8BKrgYlm0vQzeTFC5nC14XvELLx2YtFtH9q444E+5SrCcVYZR2h949q2QhI6bHL4
0twHPM4DkwIFuWukH0SUlj3nALh6D470NAOan+mA72I6Z95nGXteVbgQcoYNzKbH
j54OKSYT6Hms8mbv9rtKXW7pSPdW4tyTr4QwMMm4bKniywx0PneNy6KT89K1NH5R
H/P4rJINPN1l7XzQUaz631kJIQawTzvKSPEz60Y8EsB0u+RnoNrvl/3tIemzyKwR
+LOVH5WUwfcz3t/Pw/JQghFqDZRHrx49aHkdSres7Z+Uh2dSew8CUf9B54Ur9RWg
q+8msTyWtYD4T20vLTeNGp9oq2ShuwQIydPd1FkO6W4Ha6MNOgCj75O9hsegRhpV
iYTDwrU6K+1986FPsMn9URqSH80vucoZXpKZBuibfLl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6ZBUMh0xAg2xHLiymKlKyV1OELPCutPaBJAoHAEGOn3y4+siiQ
GxdaHjGvLCn7sXDFi5w3QRd3yMPJmmQ1Cc0imMNvrUoYNx5l1GAbQm77u/wi21/z
m/YPBt2Aro06GD4KdFSkpAAJ6Ma6wPG3rFUqrDw5jE6FDSrmTU5HMps4WCc7K2FK
9md+aE7+MCHm6gIBWezStptBL6AIVzSEKlNE4S3/LaU0XmKYPqIoQEix6WImrYjY
RA4z8MeKnMSTzeLMV0aYiGFVxx9ks099j5pgHTskNYLCAd8fmzBI
-----END RSA PRIVATE KEY-----
3 changes: 3 additions & 0 deletions Trawler.rdp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
full address:s:20.163.204.209:3389
prompt for credentials:i:1
administrative session:i:1
47 changes: 47 additions & 0 deletions amazon.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@

'''load packages'''
import requests
from bs4 import BeautifulSoup

'''define URL where login form is located'''
site = 'https://www.amazon.com/gp/sign-in.html'

'''initiate session'''
session = requests.Session()

'''define session headers'''
session.headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.61 Safari/537.36',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Language': 'en-US,en;q=0.5',
'Referer': site
}
'''get login page'''
resp = session.get(site)
html = resp.text

'''get BeautifulSoup object of the html of the login page'''
soup = BeautifulSoup(html, 'lxml')


'''scrape login page to get all the needed inputs required for login'''
data = {}
form = soup.find('form', {'name': 'signIn'})
for field in form.find_all('input'):
try:
data[field['name']] = field['value']

except:
pass

email_phno = input("enter email: ")
data[u'email'] = email_phno
# data[u'password'] = PASSWORD
post_resp = session.post('https://www.amazon.com/ap/signin', data=data)
post_soup = BeautifulSoup(post_resp.content, 'lxml')
result = post_soup.find_all("div", {"class": "a-alert-content"})

for i in result:
if ("\n Enter your password\n" in i.find_all(text=True, recursive=False)):
print("iruku")

Empty file added api/__init__.py
Empty file.
Binary file added api/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
Binary file added api/__pycache__/admin.cpython-310.pyc
Binary file not shown.
Binary file added api/__pycache__/apps.cpython-310.pyc
Binary file not shown.
Binary file added api/__pycache__/models.cpython-310.pyc
Binary file not shown.
Binary file added api/__pycache__/serializers.cpython-310.pyc
Binary file not shown.
Binary file added api/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added api/__pycache__/views.cpython-310.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions api/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
6 changes: 6 additions & 0 deletions api/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class ApiConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "api"
Empty file added api/migrations/__init__.py
Empty file.
Binary file added api/migrations/__pycache__/__init__.cpython-310.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions api/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
55 changes: 55 additions & 0 deletions api/serializers.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
from rest_framework import routers, serializers, viewsets
from user.models import *

class WhoIsSerializer(serializers.ModelSerializer):
class Meta:
model = WhoIs
fields = "__all__"


class SslCertificateSerializer(serializers.ModelSerializer):
class Meta:
model = SslCertificate
fields = "__all__"


class WappalyzerModelSerializer(serializers.ModelSerializer):
class Meta:
model = WappalyzerModel
fields = "__all__"


class NmapPortSerializer(serializers.ModelSerializer):
class Meta:
model = NmapPort
fields = "__all__"


class DnsEnumSerializer(serializers.ModelSerializer):
class Meta:
model = DnsEnum
fields = "__all__"


class SubDomainSerializer(serializers.ModelSerializer):
class Meta:
model = SubDomain
fields = "__all__"


class WhatCmsSerializer(serializers.ModelSerializer):
class Meta:
model = WhatCms
fields = "__all__"


class CaseSerializer(serializers.ModelSerializer):
class Meta:
model = Case
fields = "__all__"


class OsScanSerializer(serializers.ModelSerializer):
class Meta:
model = OsScan
fields = "__all__"
3 changes: 3 additions & 0 deletions api/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.
27 changes: 27 additions & 0 deletions api/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
from django.urls import path
from .views import *

urlpatterns = [
path("getip/",get_ip,name="api-getip"),
path("whois/",whois,name="api-whois"),
path("ssl_certificate/",ssl_certificate, name="api-ssl-certificate"),
path("wappalyzer/",wappalyzer,name="api-wappalyzer"),
path("nmap_port/",nmap_port,name="api-nmap"),
path("dns_enum/",dns_enum,name="api-dns-enum"),
path("dns_for_family/",dns_for_family,name="api-dns-for-family"),
path("subdomain_enum/",subdomain_enum,name="api-subdomain-enum"),
path("os_scan/",osscan,name="api-os-scan"),
path("check_whatsapp/",check_whatsapp, name="api-check-whatsapp"),
path("check_number_owner/",check_number_owner,name="api-check-number-owner"),
path("number_lookup/",number_lookup,name="api-number-lookup"),
path("search_breached_data/",search_breached_data,name="api-search-breached-data"),
path("name_lookup/",name_lookup,name="api-name-lookup"),
path("upi_enum/",upi_enum,name="api-upi-enum"),
path("check_amazon/",check_amazon,name="check-amazon"),
path("get_dump/",get_dump,name="get-dump"),
path("get_insta_bio",get_insta_bio,name='get-insta-bio'),
path("get_twitter_bio",get_twitter_bio,name="get-twitter-bio"),
path("get_email_lookup/",email_lookup, name='get-email-lookup'),

# path()
]
Loading