Skip to content

Instantly share code, notes, and snippets.

View lutoma's full-sized avatar
🤖
Beep boop

Lukas Martini lutoma

🤖
Beep boop
View GitHub Profile
#!/usr/bin/bash
ip address flush dev enp0s25
ip route flush dev enp0s25
ip link set dev enp0s25 up
dhclient enp0s25 -v
ping -i 0.02 -c 20 82-198-211-222.briteline.de
tracepath 82-198-211-222.briteline.de
echo
echo
ip a show dev enp0s25

Keybase proof

I hereby claim:

  • I am lutoma on github.
  • I am lutoma (https://keybase.io/lutoma) on keybase.
  • I have a public key whose fingerprint is B309 6283 6CFD 554A 1EC8 BDBC F828 A0C8 C9E1 BD2C

To claim this, I am signing this object:

void handle_udp(net_device_t* origin, size_t size, ip4_header_t* ip_packet) {
udp_header_t* header = (udp_header_t*)(ip_packet + 1);
uint16_t content_length = endian_swap16(header->length) - sizeof(udp_header_t);
// Simple echo server
if(endian_swap16(header->destination_port) == 1337) {
uint16_t reply_length = sizeof(udp_header_t) + content_length;
udp_header_t* reply = (udp_header_t*)kmalloc(reply_length);
reply->source_port = header->destination_port;
reply->destination_port = header->source_port;
print('main(){int*i=malloc(9999);',*map(lambda _:dict(zip('><+-.,]',[y+';'for(y)in'++i|--i|++*i|--*i|putchar(*i)|read(0,i,1)|}'.split('|')]),**{'[':'for(;*i;){'}).get(_,''),__import__('sys').stdin.read()),'}')
python -c "x='char';p,s=(print,{'>':'++p;','<':'--p;','+':'++*p;','-':'--*p;','.':'put'+x+'(*p);',',':'*p=get'+x+'();','[':'for(;*p;){',']':'}'});l=(x+' a[0x'+'f'*4+'];'+x+'*p=a;int main(){',[s[c]for(c)in __import__('os').fdopen(0).read()if(c)in s],'}');[[p(z) for z in i]if type(i)is(list)else p(i)for(i)in l]" | tcc -run - 2>/dev/null
protocol kernel {
scan time 20;
device routes;
import none;
export filter {
if source = RTS_STATIC then reject;
krt_prefsrc = OWNIP;
accept;
};
};
-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAmBzpeLI+1DpTGfcuBUzB
d1ymuxZ24wJph2P+qs8OCWlVRzkQ1f9pnev0ymIzdftrFlXKYyBMYGgr6IzmYbgH
5JBnZQ+9R8pKBubnNVCys+0iQ07D64EOnVblvP26Vcc+zGZiLiYCynLTbYlKwAhc
L0LeCI1z6EZDpM8zrpYZ1grDPHjtKGFA7VdM3pLTtuuRiDBE5OwBPhftzfLLiXFs
u0slfDHxP8bmRi3NTmwpyprzbZPWMe60po3U0T4RCL5UHuE2G4uy4T49A6Js9Les
9QDdSyy3FAOvNSt5ixfFU9MHa4z+YLexanBEDuqSnOWRQoAFXOFeaPhvq2PBqI2E
yXuphIAOcnmM2v5416jowT3ALQrWcmtUzbC7uilquKCQmffXPlV0UkQZHbov8Epb
liXEz1Ufsj6+DNHciaA4OdXYmyuEIyiLuhMVWrExuL96pchscmVyNcM4ASheKHG2
UOQAZwht+wf9ooAi6L7rQeWqV5/AgCd8KVispwv8TutPez8TrV+HKTkMqEn8aq6I