Skip to content

Instantly share code, notes, and snippets.

View mishrasunny174's full-sized avatar
😌
Hacking Life

Sunny Mishra mishrasunny174

😌
Hacking Life
View GitHub Profile
@mishrasunny174
mishrasunny174 / calc.py
Created August 16, 2022 08:43
SIP contribution calculation script
def main():
sip = 5000
years = 5
num_of_months = 12*years
total_corpus = 0
average_annual_return = 6.0
for month in range(num_of_months):
if month % 6 == 0 and month != 0:
// gcc lab2.c -o BufferOverflow -fno-stack-protector -z execstack -no-pie
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/personality.h>
#include <sys/mman.h>
__attribute__((constructor)) void init() {
setvbuf(stdout, NULL, _IONBF, 0);
@mishrasunny174
mishrasunny174 / exploit.py
Created March 21, 2021 18:27
Securinets CTF Quals 2021 | PWN | KILL SHOT
#!/usr/bin/env python3
from pwn import *
HOST, PORT = 'bin.q21.ctfsecurinets.com', 1338
# HOST, PORT = 'localhost', 1338
exe = ELF('./kill_shot')
libc = ELF('./libc_kill_shot.so')
def get_proc():
if args.REMOTE:
@mishrasunny174
mishrasunny174 / nginx.conf
Created December 15, 2020 02:23
Example nginx config to be used with cloudflare and ctfd. This config will log real ips on ctfd and also rate limit the connections based on real IP to 10r/s.
worker_processes 8;
events {
worker_connections 2048;
}
http {
ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;

Keybase proof

I hereby claim:

  • I am mishrasunny174 on github.
  • I am codacker (https://keybase.io/codacker) on keybase.
  • I have a public key ASD-GuIlmX5nDsqjqM4VpC6ZlKaC1cQEmubkMnboOJK8YAo

To claim this, I am signing this object: