Skip to content

Instantly share code, notes, and snippets.

View rosehgal's full-sized avatar
🎯
Focusing

Rohit Sehgal rosehgal

🎯
Focusing
View GitHub Profile
/*
This is node server, please run it like node <file_name>.js
*/
const http = require('http');
const PORT = 8000;
const SESSION_ID_KEY = 'X-Custom-Session-Id'
@rosehgal
rosehgal / BurpTurboIntruderBasicFileWriteMultiParam.py
Created May 10, 2021 03:49
Burp Suite Turbo Intruder Example
################### This section will mostly remain as it is ###################
def queueRequests(target, wordlists):
engine = RequestEngine(endpoint=target.endpoint,
concurrentConnections=5,
requestsPerConnection=100,
pipeline=False
)
################### ---------------------------------------- ###################
@rosehgal
rosehgal / ctfd-ngnix-deployment.yaml
Created May 5, 2021 05:08
CTFd nginx deployment spec
apiVersion: v1
kind: ConfigMap
metadata:
name: ctfd-nginx-conf
namespace: ctfd
data:
nginx.conf: |
worker_processes 4;
events {
worker_connections 1024;
@rosehgal
rosehgal / ctfd-redis-deployment.yaml
Created May 5, 2021 05:07
CTFd Redis deployment spec
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: ctfd
creationTimestamp: null
name: ctfd-redis-cache-pv
labels:
ctfd: redis-pv
app: ctfd-redis-cache-pv
spec:
@rosehgal
rosehgal / ctfd-mysql-deployment.yaml
Created May 5, 2021 05:06
CTFd - Database deployment spec
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: ctfd
creationTimestamp: null
labels:
ctfd: mysql-pv
app: ctfd-mysql-db-pv
name: ctfd-mysql-db-pv
spec:
@rosehgal
rosehgal / ctfd-deployment.yaml
Created May 5, 2021 05:05
CTFd portal deployment in K8s
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: ctfd
creationTimestamp: null
labels:
ctfd: ctf-pv
app: ctf-pv-logs
name: ctf-pv-logs
spec:
main foo
+-----------------+ +-----------------+
| | | |
|1. ret val space | |1. pushes ebp |
|2. arguments | +------------->CALL Inst +------------------> |2. updates ebp |
| | + | |
| | v | |
+-----------------+ Pushes the return address +-----------------+
#include <stdio.h>
void foo()
{
char ch[10];
printf("Hello from fucntion");
}
int main()
{
foo();
return 0;
+---------------+ Highest Address 0xffffffff
| cmd line args |
| env Variable |
+---------------+
| STACK |
+--+------------+
| | |
| | |
| v ^ |
| | |