Skip to content

Instantly share code, notes, and snippets.

View L04DB4L4NC3R's full-sized avatar
😏
Noob is just a state of mind

Angad Sharma L04DB4L4NC3R

😏
Noob is just a state of mind
View GitHub Profile
@L04DB4L4NC3R
L04DB4L4NC3R / rename.sh
Last active January 7, 2021 14:23
Rename VIT reference material (VTOP) to human readable format
#!/bin/bash
for i in *; do
mv $i $(echo $i | cut -d'_' -f8-)
done
@L04DB4L4NC3R
L04DB4L4NC3R / treemd.sh
Created July 7, 2020 18:08
Tree command output to markdown
#!/bin/bash
#File: tree-md
tree=$(tree -tf --noreport -I '*~' --charset ascii $1 |
sed -e 's/| \+/ /g' -e 's/[|`]-\+/ */g' -e 's:\(* \)\(\(.*/\)\([^/]\+\)\):\1[\4](\2):g')
printf "# Project tree\n\n${tree}"
@L04DB4L4NC3R
L04DB4L4NC3R / arch_std_install.md
Created May 16, 2020 13:10
ArchLinux Standard Installation

Installing Arch the Standard Way


Create a bootable pendrive

Run lsblk to see what is your pendrive

dd if= of=/dev/sd status="progress"
@L04DB4L4NC3R
L04DB4L4NC3R / std.md
Created May 16, 2020 13:09
ArchLinux Standard Installation

Installing Arch the Standard Way


Create a bootable pendrive

Run lsblk to see what is your pendrive

dd if= of=/dev/sd status="progress"
@L04DB4L4NC3R
L04DB4L4NC3R / rm.sh
Created May 9, 2020 11:32
Remove kali bloatware
sudo apt-get --purge autoremove acccheck ace-voip amap automater braa casefile cdpsnarf cisco-torch cookie-cadger copy-router-config dmitry dnmap dnsenum dnsmap dnsrecon dnstracer dnswalk dotdotpwn enum4linux enumiax exploitdb fierce firewalk fragroute fragrouter ghost-phisher golismero goofile lbd maltego-teeth masscan metagoofil miranda nmap p0f parsero recon-ng set smtp-user-enum snmpcheck sslcaudit sslsplit sslstrip sslyze thc-ipv6 theharvester tlssled twofi urlcrazy wireshark wol-e xplico ismtp intrace hping3 bbqsql bed cisco-auditing-tool cisco-global-exploiter cisco-ocs cisco-torch copy-router-config doona dotdotpwn greenbone-security-assistant hexorbase jsql lynis nmap ohrwurm openvas-cli openvas-manager openvas-scanner oscanner powerfuzzer sfuzz sidguesser siparmyknife sqlmap sqlninja sqlsus thc-ipv6 tnscmd10g unix-privesc-check yersinia aircrack-ng asleap bluelog blueranger bluesnarfer bully cowpatty crackle eapmd5pass fern-wifi-cracker ghost-phisher giskismet gqrx kalibrate-rtl killerbee kismet mdk
@L04DB4L4NC3R
L04DB4L4NC3R / battery_alert.sh
Last active April 26, 2020 19:50
Battery alert
#!/bin/bash
time=$1
warn_on=20
debug=0
discharging=`acpi | grep Discharging | wc -l` # will be 1 if discharging and 0 if chargin
while true
do
@L04DB4L4NC3R
L04DB4L4NC3R / connecting_to_wifi.sh
Last active February 23, 2020 12:07
Sys scripts
nmcli dev wifi
nmcli dev wifi connect $ESSID password $WIFI_PASSWORD
@L04DB4L4NC3R
L04DB4L4NC3R / export_csv.sh
Last active January 25, 2020 15:26
Heroku pg (postgresql) csv export
timestamp=`date | sed 's/\s/_/g'`
filename=technoscape_abstract_form_details_${timestamp}
heroku pg:psql -a hidden-hollows-55794 --command "\copy (select * from main_uploader) to $filename.csv csv delimiter ' ';"
@L04DB4L4NC3R
L04DB4L4NC3R / index.html
Last active January 15, 2020 23:17
wasm doubt
<script>
(async () => {
const bytes = await fetch("target/wasm32-unknown-unknown/debug/car_fib.wasm")
const response = await bytes.arrayBuffer()
const result = await WebAssembly.instantiate(response, {})
console.log(result.instance.exports.add(10, 3))
})()
</script>
@L04DB4L4NC3R
L04DB4L4NC3R / .env
Last active January 15, 2020 18:34
GitHub repo creation script (from template)
GITHUB_PERSONAL_ACCESS_TOKEN=
GITHUB_TEMPLATE_NAME=
GITHUB_TEMPLATE_OWNER=
GITHUB_ORGANIZATION_OWNER=