Skip to content

Instantly share code, notes, and snippets.

View faidamine's full-sized avatar

Faid Md Amine faidamine

View GitHub Profile
@faidamine
faidamine / pwn50.py
Created March 14, 2017 21:02
LSE CTF - Pwn50
#!/usr/bin/python
#Author : Faid Amine
from pwn import *
#LSE{e4xxxxxxxxxxx}
#Login Info
user = "admin"
#usr/bin/python
#Faid Mohammed Amine
#Fb : piratuer
#Pad 200 pts ( YUBITSEC CTF 2017 )
f = open("encrypted_2","w")
secret = "***REDACTED***"
#usr/bin/python
#Faid Mohammed Amine
#Fb : piratuer
#MCSC 2017 RSA 100pts
import gmpy
import binascii
#usr/bin/python
#Faid Mohammed Amine
#Fb : piratuer
from pwn import *
####### RCTF 2017 - Crypto - RSA Signe 1
s = remote('rsasign1.2017.teamrois.cn', 3000)
#usr/bin/python
#Faid Mohammed Amine
#Fb : piratuer
import commands
############### HackCon CTF 2017 - Rev 50 - KeyGen
def get_nums(dic):
#usr/bin/python
#Faid Mohammed Amine
#Fb : piratuer
####### HackCon CTF 2017 - Crypto - RSA 1
import gmpy
import binascii
#usr/bin/python
#Faid Mohammed Amine
#Fb : piratuer
import commands
import string
#usr/bin/python
#Faid Mohammed Amine
#Fb : piratuer
from pwn import *
### [Pwn] Tokyo Westerns CTF 3rd 2017 - Just do it!
s = remote('pwn1.chal.ctf.westerns.tokyo',12345)
#usr/bin/python
#Faid Mohammed Amine
#Fb : piratuer
from pwn import *
### [PPC] Tokyo Westerns CTF 3rd 2017 - Palindromes Pairs - Coding Phase
def palindrome(num):
#usr/bin/python
#Faid Mohammed Amine
#Fb : piratuer
### [Crypto] ASIS Finals 2017 - Simple Crypto
def xor_str(x, y):
if len(x) > len(y):