Skip to content

Instantly share code, notes, and snippets.

View 53845714nF's full-sized avatar
🧠

Sebastian Feustel 53845714nF

🧠
View GitHub Profile
@53845714nF
53845714nF / timetable.py
Last active April 26, 2024 07:52
Checks if my timetable has become available.
import json
import time
import requests
from bs4 import BeautifulSoup
# Telegram Variables
URL = 'https://api.telegram.org/bot'
TOKEN = '<Your Token>'
chat_id = '<Your Chat ID>'
@53845714nF
53845714nF / ec2.tf
Last active October 13, 2022 11:30
Terraform AWS EC2 Ubuntu Server
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
}
}
provider "aws" {
@53845714nF
53845714nF / photo_manager.py
Last active February 17, 2024 18:16
Fast exploit for the rhme2 CTF. For the challenge Photo Manager. Written in Python3. Breaks a a stack cookie.
#!/usr/bin/env python3
import serial
import time
try:
arduino = serial.Serial('/dev/ttyUSB0', 19200, timeout=0.1)
except:
print('Port not found')
def read_until(until):
@53845714nF
53845714nF / Ackermann.sh
Last active April 26, 2024 07:46
The Ackermann function as Bash One-Liner
echo "define a(m,n){if(m==0){return(n+1)};if(m>0&&n==0){return (a(m-1,1))};if(m>0&&n>0){ return a(m-1,a(m,n-1))}}a(4,1)" | bc
@53845714nF
53845714nF / minion_id.service
Last active April 26, 2024 07:49
Systemd Unit File for my Linux Containers on Proxmox. Create a Saltminion Id for saltstack.
[Unit]
Description=Move the hostnamewith the Domain to the salt minion_id.
DefaultDependencies=no
After=basic.target
[Service]
Type=oneshot
ExecStart=/bin/bash -c 'echo "$(hostname).fritz.box" > /etc/salt/minion_id'
[Install]