Skip to content

Instantly share code, notes, and snippets.

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 Jan 7, 2021
Rename VIT reference material (VTOP) to human readable format
View rename.sh
#!/bin/bash
for i in *; do
mv $i $(echo $i | cut -d'_' -f8-)
done
@L04DB4L4NC3R
L04DB4L4NC3R / treemd.sh
Created Jul 7, 2020
Tree command output to markdown
View treemd.sh
#!/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
ArchLinux Standard Installation
View arch_std_install.md

Installing Arch the Standard Way


Create a bootable pendrive

Run lsblk to see what is your pendrive

dd if=<path to arch iso> of=/dev/sd<letter> status="progress"
@L04DB4L4NC3R
L04DB4L4NC3R / std.md
Created May 16, 2020
ArchLinux Standard Installation
View std.md

Installing Arch the Standard Way


Create a bootable pendrive

Run lsblk to see what is your pendrive

dd if=<path to arch iso> of=/dev/sd<letter> status="progress"
@L04DB4L4NC3R
L04DB4L4NC3R / rm.sh
Created May 9, 2020
Remove kali bloatware
View rm.sh
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
View battery_alert.sh
#!/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
View connecting_to_wifi.sh
nmcli dev wifi
nmcli dev wifi connect $ESSID password $WIFI_PASSWORD
@L04DB4L4NC3R
L04DB4L4NC3R / export_csv.sh
Last active Jan 25, 2020
Heroku pg (postgresql) csv export
View export_csv.sh
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 ' ';"
View index.html
<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 Jan 15, 2020
GitHub repo creation script (from template)
View .env
GITHUB_PERSONAL_ACCESS_TOKEN=
GITHUB_TEMPLATE_NAME=
GITHUB_TEMPLATE_OWNER=
GITHUB_ORGANIZATION_OWNER=