Skip to content

Instantly share code, notes, and snippets.

View yogeesh's full-sized avatar

Yogeesh Seralathan yogeesh

View GitHub Profile
@yogeesh
yogeesh / echo_test.php
Created April 3, 2020 22:11
php load test
<?php echo '<p>Hello World</p>'; ?>
alert(100);
@yogeesh
yogeesh / search.html
Last active July 21, 2019 22:53
Search test
<!DOCTYPE html>
<html class="client-nojs" lang="en" dir="ltr">
<head>
<meta charset="UTF-8"/>
<title>Seattle - Wikipedia</title>
<script>document.documentElement.className=document.documentElement.className.replace(/(^|\s)client-nojs(\s|$)/,"$1client-js$2");RLCONF={"wgCanonicalNamespace":"","wgCanonicalSpecialPageName":!1,"wgNamespaceNumber":0,"wgPageName":"Seattle","wgTitle":"Seattle","wgCurRevisionId":907219569,"wgRevisionId":907219569,"wgArticleId":11388236,"wgIsArticle":!0,"wgIsRedirect":!1,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["CS1: Julian–Gregorian uncertainty","CS1 maint: BOT: original-url status unknown","Webarchive template wayback links","Wikipedia indefinitely semi-protected pages","Featured articles","Use mdy dates from June 2018","Articles with short description","Articles containing Lushootseed-language text","Pages using infobox settlement with possible nickname list","Pages using infobox settlement with possible motto list","Coordinates on Wikidata","Article
@yogeesh
yogeesh / Recrussion Examples
Created September 21, 2015 20:57
recrussion.py
def recCount(x):
if x == 1:
return 1
return recCount(x-1)+x
#print(recCount(4))
def sumDigits(x):
if x == 0: return 0
@yogeesh
yogeesh / crypto_200.py
Created September 20, 2014 17:44
CSAW 2014 crypto - 200 points
'''
crypto - 200
'''
import socket
def getTranslatedMessage(message):
key=-1
translated=''
for symbol in message:
'''
100 chicken and $100
$0.05, $1, 5$
'''
#Setting Total
tcost=100
tnum=100
#Setting individual max
x=99
y=99
#hitcon
import zipfile, tarfile
import os
import sys
sys.setrecursionlimit(10000)
def unzip(file, path):
print file
zip = zipfile.ZipFile(file)
#IPU9ek (^) YKo! S
def xor(txt, msg):
for i in range(0,6):
print chr(ord(txt[i])^ord(msg[i]))
msg ="YKo! S"
txt= "IPU9ek"
xor(txt, msg)
@yogeesh
yogeesh / rsa_enc_dec.py
Last active December 31, 2015 12:19
RSA encrypter and decrypter functionality in python. Not written for use in real life situation. You can use it in CTF's and mainly for learning purpose. Dont duplicate this copy, just share it :) Suggestion's and comments are welcomed.
import random
import math
def enc(message, pubkey) :
msg = [ord(char) for char in message]
e,n = pubkey
c = [pow(m, e, n) for m in msg] # c = m**e % n
return c
def dec(cipher, prikey) :