Skip to content

Instantly share code, notes, and snippets.

View 2001db8's full-sized avatar

Jens 2001db8

  • Wuerzburg, Germany
View GitHub Profile
@2001db8
2001db8 / omercy.py
Created April 10, 2020 06:53 — forked from Krazybug/omercy.py
O'Reilly free ebooks downloader
'''
O'Meirrcy !!!! Download free ebooks from O'Reilly
Usage:
> git clone https://gist.github.com/Krazybug/1ae50814d25b0a1d862dfdf7161ee503
> mv 1ae50814d25b0a1d862dfdf7161ee503 omercy
> cd omercy
> pip install requests
> pip install bs4
> python omercy.py
@2001db8
2001db8 / LUKS_SSH.md
Last active March 15, 2020 22:59
Decrypt LUKS volume at boot via SSH on CentOS 7

Download https://github.com/mk-fg/dracut-crypt-sshd and unzip

yum groupinstall "Development Tools"
yum install dropbear
cp -R 60dropbear-sshd /usr/lib/dracut/modules.d/
echo 'add_dracutmodules+="dropbear-sshd"' >> /etc/dracut.conf.d/dropbear.conf
echo  'dropbear_port=22' >> /etc/dracut.conf.d/dropbear.conf

Then edit GRUB_CMDLINE_LINUX line in /etc/default/grub and add

@2001db8
2001db8 / de_ice.fish
Created December 31, 2019 15:51 — forked from liclac/de_ice.fish
set -l data_status (curl -s https://iceportal.de/api1/rs/status)
set -l data_trip (curl -s https://iceportal.de/api1/rs/tripInfo/trip)
# next stop
echo  (echo $data_trip | jq -r '([ .trip.stops[] | select(.info.passed==false) ]
| first).station.name')
# train number
echo  (echo $data_trip | jq -r '"\(.trip.trainType)-\(.trip.vzn)"')
# speed
echo speed (echo $data_status | jq -r '"\(.speed) km/h"')
#!/usr/bin/env python3
'''
calisuck: index, filter-out smartly and download ebooks from Calibre open directories
Installation:
You need python 3.5 installed
Download the file as a zip and unzip-it and get into the dir
@2001db8
2001db8 / nginx.conf
Created October 31, 2018 17:59 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@2001db8
2001db8 / iterm2-solarized.md
Created April 3, 2018 11:14 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

¢‿¢
©¿© o
ª{•̃̾_•̃̾}ª
¬_¬
¯\(º_o)/¯
¯\(º o)/¯
¯\_(⊙︿⊙)_/¯
¯\_(ツ)_/¯
凸_(ツ)_凸
ε=ε=ε=┏(゚ロ゚;)┛
@2001db8
2001db8 / keybase.md
Last active June 19, 2017 11:18
prove for keybase.io

Keybase proof

I hereby claim:

  • I am 2001db8 on github.
  • I am roesen (https://keybase.io/roesen) on keybase.
  • I have a public key ASAD9BBY1jx0wvTbzhLkuixH4TWmKRIYuC5NAs9uJQnrjwo

To claim this, I am signing this object:

Neat Workstation

Source

Computers

  • 13" Macbook Pro 3.3 GHz i7 (late 2016)
  • Microsoft Surface Book (2016)

Peripherals

WannaCry|WannaDecrypt0r NSA-Cybereweapon-Powered Ransomware Worm

  • Virus Name: WannaCrypt, WannaCry, WanaCrypt0r, WCrypt, WCRY
  • Vector: All Windows versions before Windows 10 are vulnerable if not patched for MS-17-010. It uses EternalBlue MS17-010 to propagate.
  • Ransom: between $300 to $600. There is code to 'rm' (delete) files in the virus. Seems to reset if the virus crashes.
  • Backdooring: The worm loops through every RDP session on a system to run the ransomware as that user. It also installs the DOUBLEPULSAR backdoor. It corrupts shadow volumes to make recovery harder. (source: malwarebytes)
  • Kill switch: If the website www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com is up the virus exits instead of infecting the host. (source: malwarebytes). This domain has been sinkholed, stopping the spread of the worm.

SECURITY BULLETIN AND UPDATES HERE: https://technet.microsoft.com/en-us/library/security/ms17-010.aspx