Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mrhili/kali-learning-scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kali Linux Teaching Scripts

This repository contains a collection of Bash and Python scripts I created while teaching Kali Linux and exploring offensive security and automation.


Quick Start (Dashboard)

Run the LazyScript-style dashboard to access everything in one place:

bash dashboard.sh

Experimental Lab: Internet Ownership (ASN Expansion)

Goal: Expand ASNs into CIDRs, normalize into scan targets, and output targets.txt.

./internet-ownership/asn_expand.sh -a "AS13335,AS15169"

Notes:

  • Uses whois by default.
  • Optional: add --use-bgphe and/or --use-ipinfo --ipinfo-token <TOKEN>.
  • If targets.txt would be huge, you will be asked to confirm.

Bug Bounty Scripts

Recon with MassDNS

/recon-massdns/recon-massdns.sh <long_domain> <keyword_to_start_with>

Domain Tree Visualization

/domain_tree/domain_tree.sh <input_file> > <output_file>

Sort Domains

/sort_domains/sort_domains.sh <input_file> <output_file>

Separate Domains by Main Domain

/domains_separate/separate.sh <input_file> <main_domain>

Split Domains by HTTP Status

./split.sh <file>
./split.sh <file1> <file2> <file3>

Port Lookup

./port_lookup/port_lookup.sh

POLYMORPHIC XSS GENERATOR

git clone https://github.com/mrhili/web-play/tree/main/polymorphic-xss
cd polymorphic-xss
python3 static_poly_gen.py
python3 poly_gen.py

Python Web Server

python python_server/serve.py

Redirector (Bypass IP Filters)

python redirector/redirector.py

Weasy PDF Payload Reader

python weasy/weasy.py

This script reads WeasyPrint-generated PDFs with payloads such as:

<link rel="attachment" href="file:///etc/passwd" />
<iframe src="http://localhost/local.txt" height="800px" width="800px"></iframe>

CRACKING

CRACK ZIP FILES

./crackzip/crackzip.sh

Kali Linux Scripts

Backup Script (cron-compatible)

/backup-script-work-with-crontab/backup.sh

File Manager with Search & Navigation

/files-manager-script/manager

Translate Bash to PowerShell

/basic-bash2powershell-translator/basictranslator.sh curl ipinfo.io/52.156.12.167

IP Generator

./ipgen/ipgen.sh 192.168.1.1-6 output.txt

Output:

192.168.1.1
192.168.1.2
...
192.168.1.6

Security Scripts

Password Generation & Evaluation

/password-generator/generator.sh passwords.txt
/password-evaluator/evaluator.sh passwords.txt

Regenerate Machine ID

sudo /machine-id-regenaration/re.sh

Change Hostname

sudo /hostname-change/change.sh

Uncategorized Scripts

Offline MAC Address Research

/offline-mac-research/search.sh 50:46:5D:6E:8C:20

Find Local IP from MAC

/search-local-ip-from-mac/search.sh 50:46:5D:6E:8C:20

Monitor Mode Scripts

/monitor/monitor.sh wlan0
/monitor/unmonitor.sh wlan0

Obfuscation & Execution (Python)

Obfuscate Python Script

python3 /obfs_python/obfs.py example.py obfs.py

Deobfuscate and Execute

python3 /obfs_python/deobfs.py obfs.py --execute

Deobfuscate and Output

python3 /obfs_python/deobfs.py obfs.py --output=reveal.py

Initial Kali Configuration

./configure/configure.sh

Output:

[+] Update and upgrade machine
[OK]

KIRCT Web Profile

./kirct-web-profile/kirct-web-profile.sh --profile=core

This profile is separated from configure/ on purpose and is focused on KIRCT web workflow + operator brain wrappers.


Tools & Utilities

RedHCP (Dynamic DHCP Script)

/redhcp/redhcp.sh

DIOS (SQLi Payload Generator)

/dios-ascii-hex/dios.sh

WFuzz Analyzer

Edit these variables inside the script first:

col2_value=200
col3_value=29
col5_value=190
col7_min=3700
col7_max=380

Then run:

./analyze.sh

Python Brute-force Login

python ./py-login-bruteforce/bruteforce_v3.py --url <login_url> --cookie "session=..." --userlist <userlist.txt> --passlist <passwords.txt> --mode both --threads 10

cURL Brute-force Login

./login-bruteforce.sh -u "http://example/api/Auth/Login" -U "[email protected]" -P /usr/share/wordlists/rockyou.txt

Output:

Failed login... Success! Username: ... Password: ...

Domain Iteration Generator

/iterate/iterate.sh template§§.com 5 7

Projects & Games

LocalStorage Stealer PoC

git clone https://github.com/mrhili/demo-localStorage-stealer

HackSim CTF Game

git clone https://github.com/mrhili/HackSim
cd HackSim
python3 -m pip install -r requirements.txt
python3 main.py

GuessThisCode by mansour Hack Game

git clone https://github.com/mrhili/guessthiscode.com-userscript

Add to Tampermonkey and visit guessthiscode.com to play.

VGNR Crypto Game

git clone https://github.com/mrhili/vgnr
cd vgnr
python3 -m pip install -e

To-Do & Ideas

  • Improve monitor script with additional modes: mini-monitor (non-kill) and pidi-monitor (passive).
  • Add script to chmod +x all scripts and install all Python dependencies automatically.

Tips and tricks on kali linux

  • snapshot before full upgrade
  • do full upgrade
  • on every upgrade do : install linux header
  • sudo ./VBoxLinux

About

No description, website, or topics provided.

Resources

Stars

5 stars

Watchers

2 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages