Skip to content

Instantly share code, notes, and snippets.

@p3t3r67x0
p3t3r67x0 / iptables.sh
Created Dec 14, 2019 — forked from thomasfr/iptables.sh
iptable rules to allow outgoing DNS lookups, outgoing icmp (ping) requests, outgoing connections to configured package servers, outgoing connections to all ips on port 22, all incoming connections to port 22, 80 and 443 and everything on localhost
View iptables.sh
#!/bin/bash
IPT="/sbin/iptables"
# Server IP
SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')"
# Your DNS servers you use: cat /etc/resolv.conf
DNS_SERVER="8.8.4.4 8.8.8.8"
# Allow connections to this package servers
View ssh_banner.md
View libreelec_wifi_by_ssh.md

LibreELEC

Set wifi password by ssh connection

connmanctl
agent on
scan wifi
services
connect wifi_blah <= tab autocomplete works here
@p3t3r67x0
p3t3r67x0 / README.md
Last active Mar 20, 2019
Simple programm to encrypt or decrypt a vigenere cipher text. See README.md how to run this programm.
View README.md

vigenere.py

usage: vigenere.py [-h] [-d, --decrypt] [-e, --encrypt] -k, --key KEY
                   [-i, --in [INPUT]] [-o, --out [OUTPUT]]

Encrypt or decrypt a vigenere cipher text

optional arguments:
@p3t3r67x0
p3t3r67x0 / sshd_deattack_exploit.md
Created Mar 2, 2019
SSHD deattack exploit. By Dvorak with Code from teso (http://www.team-teso.net)
View sshd_deattack_exploit.md

SSHD deattack exploit

First you need to download it from here. Then you must extract it.

tar zxvf 349.tgz
cd ssh
View spiegel_online_bestseller.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import requests
from lxml import html
def load_doc():
doc= requests.get('http://www.spiegel.de/kultur/literatur/spiegel-bestseller-taschenbuecher-a-1025518.html')
View dresden_city_districts.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View muenchen_city_districts.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View bochum_city_districts.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View koeln_city_districts.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.