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

Fixed format & imports #15

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Pylint

on: [push]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')
39 changes: 39 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
5,492 changes: 3,695 additions & 1,797 deletions modules/UserName/username.py

Large diffs are not rendered by default.

23 changes: 14 additions & 9 deletions modules/email/leakcheck_net.py
Original file line number Diff line number Diff line change
@@ -1,49 +1,54 @@
import json, requests
import json
from datetime import date

import requests

R = "\033[1;31m"
B = "\033[1;34m"
Y = "\033[1;33m"
G = "\033[1;32m"
RS = "\033[0m"
W = "\033[1;37m"
P = "\033[35m"
C = '\033[36m'
BL = '\033[1m'
C = "\033[36m"
BL = "\033[1m"


def leakcheck_email(email):
today = date.today()
Today_Date = today.strftime("%B %d, %Y")
print(f"""
print(
f"""
{R}___ ____ ____{B} ____ ____ _ _ {RS}
{R}|__] |__/ |___ {B}|__| | |__| {RS}
{R}|__] | \ |___ {B}| | |___ | | {RS}

Github {Y}:{RS} https://github.com/naimkowshik
{B}NOW {Y}:{RS} {Today_Date} {B}Version {Y}:{C} 1{Y}.{C}0{RS}
{B}Status {Y}:{RS} This Tool Is Still In Development Mode 〽️
""")
"""
)

LEAKCHECK_API = "49535f49545f5245414c4c595f4150495f4b4559"

url = f"https://leakcheck.net/api/public?key={LEAKCHECK_API}&check={email}"

headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36 Edg/102.0.1245.33',
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36 Edg/102.0.1245.33",
}

leakcheck_request = requests.request("GET", url, headers=headers)

leakcheck_json = json.loads(leakcheck_request.content)

if leakcheck_json['success'] == True:
if leakcheck_json["success"] == True:
print(f" \n [{B} Email {RS}]{Y}:{RS} {email} {C}[{R} BREACH {C}]{RS}")
print(f" [{B} Found {RS}]{Y}:{RS} {leakcheck_json['found']}")
print(f" [{B} Passwords {RS}]{Y}:{RS} {leakcheck_json['passwords']}")
print(f" [{B} Sources {RS}]{RS}")
for sources in leakcheck_json['sources']:
for sources in leakcheck_json["sources"]:
print(f"\n{' ' * 5} └[{B} Name {RS}]{Y}:{RS} {sources['name']}")
print(f"{' ' * 5} └[{B} Date {RS}]{Y}:{RS} {sources['date']} \n")

elif leakcheck_json['success'] == False:
elif leakcheck_json["success"] == False:
print(f" {B}Email{Y} :{RS} {email} {C}[{G} CLEAR {C}]{RS}\n")
38 changes: 26 additions & 12 deletions modules/info.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,40 @@
from rich import print
from rich.console import Console
from rich.table import Table
from rich import print
table = Table(title="[cyan]User Open Source Intelligence[/cyan] [red][ [white]UOSINT[/white] [red]][/red]")

table = Table(
title="[cyan]User Open Source Intelligence[/cyan] [red][ [white]UOSINT[/white] [red]][/red]"
)

table.add_column("Flags", justify="center", style="cyan", no_wrap=True)
table.add_column("Description", justify="center", style="magenta")
table.add_column("IsRequired", justify="center", style="green")
table.add_column("API Required", justify="center", style="green")
table.add_column("API WebSite", justify="center", style="green")

table.add_row("-e[yellow] , [/yellow][cyan]--email",
"[white]Sometime [bold magenta]USER[/bold magenta] write [bold magenta]Email[/bold magenta] in there [bold magenta]Bio[/bold magenta], in that case you will take that Email and use [cyan]-e[/cyan] command[yellow].[/yellow]",
"Yes",
"[red]No[/red]",
"[red]No WebSite[/red]")
table.add_row(
"-e[yellow] , [/yellow][cyan]--email",
"[white]Sometime [bold magenta]USER[/bold magenta] write [bold magenta]Email[/bold magenta] in there [bold magenta]Bio[/bold magenta], in that case you will take that Email and use [cyan]-e[/cyan] command[yellow].[/yellow]",
"Yes",
"[red]No[/red]",
"[red]No WebSite[/red]",
)

table.add_row("-u[yellow] , [/yellow][cyan]--username", "[white] Information will be collected from many website such as [bold green]Social Media[/bold green][yellow],[/yellow][bold green]Dating Platfrom[/bold green][yellow],[/yellow][bold green]Music Platfrom[/bold green][yellow],[/yellow][bold green]Porn[/bold green][yellow],[/yellow] etc[yellow].[/yellow]", "Yes", "[red]No[/red]", "[red]No WebSite[/red]")
table.add_row(
"-u[yellow] , [/yellow][cyan]--username",
"[white] Information will be collected from many website such as [bold green]Social Media[/bold green][yellow],[/yellow][bold green]Dating Platfrom[/bold green][yellow],[/yellow][bold green]Music Platfrom[/bold green][yellow],[/yellow][bold green]Porn[/bold green][yellow],[/yellow] etc[yellow].[/yellow]",
"Yes",
"[red]No[/red]",
"[red]No WebSite[/red]",
)

table.add_row("-n[yellow] , [/yellow][cyan]--number",
"[white]Sometime [bold magenta]USER[/bold magenta] write [bold magenta]Phone Number[/bold magenta] in there [bold magenta]Bio[/bold magenta], in that case you will take that phoneNumber and use [cyan]-n[/cyan] command[yellow].[/yellow]",
"Yes", "[red]No[/red]",
"[red]No WebSite[/red]")
table.add_row(
"-n[yellow] , [/yellow][cyan]--number",
"[white]Sometime [bold magenta]USER[/bold magenta] write [bold magenta]Phone Number[/bold magenta] in there [bold magenta]Bio[/bold magenta], in that case you will take that phoneNumber and use [cyan]-n[/cyan] command[yellow].[/yellow]",
"Yes",
"[red]No[/red]",
"[red]No WebSite[/red]",
)


console = Console()
Expand Down
98 changes: 61 additions & 37 deletions modules/phone_number/phone.py
Original file line number Diff line number Diff line change
@@ -1,135 +1,159 @@
import json, requests
import json
from datetime import date

import requests

R = "\033[1;31m"
B = "\033[1;34m"
Y = "\033[1;33m"
G = "\033[1;32m"
RS = "\033[0m"
W = "\033[1;37m"
P = "\033[35m"
C = '\033[36m'
BL = '\033[1m'
C = "\033[36m"
BL = "\033[1m"


def Phone_number_lookup(number):

today = date.today()
Today_Date = today.strftime("%B %d, %Y")
print(f"""
print(
f"""
{B}___ _ _ ____ _ _ ____ {R}_ _ _ _ _ _ ___ ____ ____ {RS}
{B}|__] |__| | | |\ | |___ {R}|\ | | | |\/| |__] |___ |__/ {RS}
{B}| | | |__| | \| |___ {R}| \| |__| | | |__] |___ | \ {RS}

Github {Y}:{RS} https://github.com/naimkowshik
{B}NOW {Y}:{RS} {Today_Date} {B}Version {Y}:{C} 1{Y}.{C}0{RS}
{B}Status {Y}:{RS} This Tool Is Still In Development Mode 〽️
""")
"""
)

url = f"https://demo.phone-number-api.com/json/?number={number}"

pnlp_request = requests.request("GET", url)

pnlp_json = json.loads(pnlp_request.content)

if pnlp_json['status'] == 'success':
if (not pnlp_json['numberType']):
if pnlp_json["status"] == "success":
if not pnlp_json["numberType"]:
print(f"{C}[{RS} {B}Number Type {C}]{RS} {Y}: {R}❌{RS}")
else:
print(f"{C}[{RS} {B}Number Type {C}]{RS} {Y}: {RS}{pnlp_json['numberType']}")
print(
f"{C}[{RS} {B}Number Type {C}]{RS} {Y}: {RS}{pnlp_json['numberType']}"
)

if (not pnlp_json['numberValid']):
if not pnlp_json["numberValid"]:
print(f"{C}[{RS} {B}Number Valid {C}]{RS} {Y}: {R}❌{RS}")
else:
print(f"{C}[{RS} {B}Number Valid {C}]{RS} {Y}: {RS}{pnlp_json['numberValid']} ✔️ ")
print(
f"{C}[{RS} {B}Number Valid {C}]{RS} {Y}: {RS}{pnlp_json['numberValid']} ✔️ "
)

if (not pnlp_json['numberValidForRegion']):
if not pnlp_json["numberValidForRegion"]:
print(f"{C}[{RS} {B}Number Valid For Region {C}]{RS} {Y}: {R}❌{RS}")
else:
print(f"{C}[{RS} {B}Number Valid For Region {C}]{RS} {Y}: {RS}{pnlp_json['numberValidForRegion']} ✔️ ")
print(
f"{C}[{RS} {B}Number Valid For Region {C}]{RS} {Y}: {RS}{pnlp_json['numberValidForRegion']} ✔️ "
)

if (not pnlp_json['numberCountryCode']):
if not pnlp_json["numberCountryCode"]:
print(f"{C}[{RS} {B}Number Country Code {C}]{RS} {Y}: {R}❌{RS}")
else:
print(f"{C}[{RS} {B}Number Country Code {C}]{RS} {Y}: {RS}{pnlp_json['numberCountryCode']}")
print(
f"{C}[{RS} {B}Number Country Code {C}]{RS} {Y}: {RS}{pnlp_json['numberCountryCode']}"
)

if (not pnlp_json['numberAreaCode']):
if not pnlp_json["numberAreaCode"]:
print(f"{C}[{RS} {B}Number Area Code {C}]{RS} {Y}: {R}❌{RS}")
else:
print(f"{C}[{RS} {B}Number Area Code {C}]{RS} {Y}: {RS}{pnlp_json['numberAreaCode']}")
print(
f"{C}[{RS} {B}Number Area Code {C}]{RS} {Y}: {RS}{pnlp_json['numberAreaCode']}"
)

if (not pnlp_json['ext']):
if not pnlp_json["ext"]:
print(f"{C}[{RS} {B}Ext {C}]{RS} {Y}: {R}❌{RS}")
else:
print(f"{C}[{RS} {B}Ext {C}]{RS} {Y}: {RS}{pnlp_json['ext']}")

if (not pnlp_json['formatE164']):
if not pnlp_json["formatE164"]:
print(f"{C}[{RS} {B}FormatE164 {C}]{RS} {Y}: {R}❌{RS}")
else:
print(f"{C}[{RS} {B}FormatE164 {C}]{RS} {Y}: {RS}{pnlp_json['formatE164']}")

if (not pnlp_json['formatNational']):
if not pnlp_json["formatNational"]:
print(f"{C}[{RS} {B}Format National {C}]{RS} {Y}: {R}❌{RS}")
else:
print(f"{C}[{RS} {B}Format National {C}]{RS} {Y}: {RS}{pnlp_json['formatNational']}")
print(
f"{C}[{RS} {B}Format National {C}]{RS} {Y}: {RS}{pnlp_json['formatNational']}"
)

if (not pnlp_json['formatInternational']):
if not pnlp_json["formatInternational"]:
print(f"{C}[{RS} {B}Format International {C}]{RS} {Y}: {R}❌{RS}")
else:
print(f"{C}[{RS} {B}Format International {C}]{RS} {Y}: {RS}{pnlp_json['formatInternational']}")
print(
f"{C}[{RS} {B}Format International {C}]{RS} {Y}: {RS}{pnlp_json['formatInternational']}"
)

if (not pnlp_json['carrier']):
if not pnlp_json["carrier"]:
print(f"{C}[{RS} {B}Carrier {C}]{RS} {Y}: {R}❌{RS}")
else:
print(f"{C}[{RS} {B}Carrier {C}]{RS} {Y}: {RS}{pnlp_json['carrier']}")

if (not pnlp_json['continent']):
if not pnlp_json["continent"]:
print(f"{C}[{RS} {B}Continent {C}]{RS} {Y}: {R}❌{RS}")
else:
print(f"{C}[{RS} {B}Continent {C}]{RS} {Y}: {RS}{pnlp_json['continent']}")

if (not pnlp_json['countryName']):
if not pnlp_json["countryName"]:
print(f"{C}[{RS} {B}Country Name {C}]{RS} {Y}: {R}❌{RS}")
else:
print(f"{C}[{RS} {B}Country Name {C}]{RS} {Y}: {RS}{pnlp_json['countryName']}")
print(
f"{C}[{RS} {B}Country Name {C}]{RS} {Y}: {RS}{pnlp_json['countryName']}"
)

if (not pnlp_json['region']):
if not pnlp_json["region"]:
print(f"{C}[{RS} {B}Region {C}]{RS} {Y}: {R}❌{RS}")
else:
print(f"{C}[{RS} {B}Region {C}]{RS} {Y}: {RS}{pnlp_json['region']}")

if (not pnlp_json['regionName']):
if not pnlp_json["regionName"]:
print(f"{C}[{RS} {B}Region Name {C}]{RS} {Y}: {R}❌{RS}")
else:
print(f"{C}[{RS} {B}Region Name {C}]{RS} {Y}: {RS}{pnlp_json['regionName']}")
print(
f"{C}[{RS} {B}Region Name {C}]{RS} {Y}: {RS}{pnlp_json['regionName']}"
)

if (not pnlp_json['city']):
if not pnlp_json["city"]:
print(f"{C}[{RS} {B}City Name {C}]{RS} {Y}: {R}❌{RS}")
else:
print(f"{C}[{RS} {B}City Name {C}]{RS} {Y}: {RS}{pnlp_json['city']}")

if (not pnlp_json['zip']):
if not pnlp_json["zip"]:
print(f"{C}[{RS} {B}Zip Name {C}]{RS} {Y}: {R}❌{RS}")
else:
print(f"{C}[{RS} {B}Zip Name {C}]{RS} {Y}: {RS}{pnlp_json['zip']}")

if (not pnlp_json['offset']):
if not pnlp_json["offset"]:
print(f"{C}[{RS} {B}Offset {C}]{RS} {Y}: {R}❌{RS}")
else:
print(f"{C}[{RS} {B}Offset {C}]{RS} {Y}: {RS}{pnlp_json['offset']}")

if (not pnlp_json['timezone']):
if not pnlp_json["timezone"]:
print(f"{C}[{RS} {B}Time Zone {C}]{RS} {Y}: {R}❌{RS}")
else:
print(f"{C}[{RS} {B}Time Zone {C}]{RS} {Y}: {RS}{pnlp_json['timezone']}")

if (not pnlp_json['currency']):
if not pnlp_json["currency"]:
print(f"{C}[{RS} {B}Currency {C}]{RS} {Y}: {R}❌{RS}")
else:
print(f"{C}[{RS} {B}Currency {C}]{RS} {Y}: {RS}{pnlp_json['currency']}")

if pnlp_json['status'] == 'fail':
print(f"{C}[{RS} {B}Message {C}]{RS} {Y}:{RS} {pnlp_json['message']} {Y}&{RS} Check number again {R}❌{RS}")
if pnlp_json["status"] == "fail":
print(
f"{C}[{RS} {B}Message {C}]{RS} {Y}:{RS} {pnlp_json['message']} {Y}&{RS} Check number again {R}❌{RS}"
)


if __name__ == "__main__":
Phone_number_lookup()
Loading