Skip to content

Instantly share code, notes, and snippets.

@warecrash
warecrash / makekali.sh
Last active February 13, 2024 18:40
Convert Debian to Kali
apt update
apt -y install wget gnupg dirmngr
wget -q -O - https://archive.kali.org/archive-key.asc | gpg --import
gpg --keyserver hkp://keys.gnupg.net --recv-key 44C6513A8E4FB3D30875F758ED444FF07D8D0BF6
echo "deb http://http.kali.org/kali kali-rolling main non-free contrib" >> /etc/apt/sources.list
gpg -a --export ED444FF07D8D0BF6 | sudo apt-key add -
apt update
apt -y upgrade
apt -y dist-upgrade
apt -y autoremove --purge

Keybase proof

I hereby claim:

  • I am warecrash on github.
  • I am warecrash (https://keybase.io/warecrash) on keybase.
  • I have a public key ASBa3xaqhlaq3m_PCkzUFJW-DM_UmpXCKpMmkEjSQFIPjAo

To claim this, I am signing this object:

@warecrash
warecrash / snatch.py
Last active September 20, 2019 03:24
Download every file linked on a page
from bs4 import BeautifulSoup
import urllib.request
import sys
import argparse
parser = argparse.ArgumentParser(description='Scrape a page for all the files and download them to the current directory.')
parser.add_argument('root', metavar='url', type=str, help='URL you want to download files from')
args = parser.parse_args()