Skip to content

Instantly share code, notes, and snippets.

View gph03n1x's full-sized avatar

Γιάννης Παπαϊωάννου gph03n1x

View GitHub Profile
Code used in Fosscomm 2016
__author__ = 'John'
import random
colors = {
'B': 'Blue',
'R': 'Red',
'Y': 'Yellow',
'G': 'Green',
'W': 'White',
import os, sys
wordtolook = raw_input(">")
for root, directories, filenames in os.walk(os.getcwd()):
for filename in filenames:
if os.path.join(root,filename) != sys.argv[0]:
fileobject = open(os.path.join(root,filename), 'r')
if wordtolook in fileobject.read():
print "{0} at :{1}".format(wordtolook, fileobject.name)
fileobject.close()
@gph03n1x
gph03n1x / blogcode1.py
Last active December 26, 2016 17:39
Blog Codes
diffs = differ.compare(files_cache[file_name], log_file.read())
diff_l = [diff for diff in diffs if re.search(diff_regex, diff)]
file_diffs[file_name] = "".join(diff_l)
@gph03n1x
gph03n1x / Fireball.js
Created January 18, 2015 17:36
Fireball Script for Unity
#pragma strict
var bulletSpeed: float = 10000;
var projectile: GameObject;
function Start () {
}
function Update()
{
if(Input.GetKey (KeyCode.Q))
@gph03n1x
gph03n1x / erg_c_001.c
Last active August 29, 2015 14:08
Ασκήσεις Εργαστηρίου
#include <stdio.h>
#include <locale.h> /* για ελληνικούς χαρακτήρες */
#include <conio.h> /* για το getch */
int main() {
setlocale(LC_ALL, ""); /* για ελληνικούς χαρακτήρες */
/* Καταχώρηση μεταβλητών */
int number;
@gph03n1x
gph03n1x / main.py
Created November 2, 2013 17:06
PyQt5 Dark Fusion Theme based on the cpp qt5 theme found here https://gist.github.com/Skyrpex/5547015
from PyQt5 import QtCore, QtGui, QtWidgets
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
app.setStyle('Fusion')
palette = QtGui.QPalette()
palette.setColor(QtGui.QPalette.Window, QtGui.QColor(53,53,53))
palette.setColor(QtGui.QPalette.WindowText, QtCore.Qt.white)
palette.setColor(QtGui.QPalette.Base, QtGui.QColor(15,15,15))
@gph03n1x
gph03n1x / tk_widgets.py
Last active December 21, 2015 10:49
Minimalistic Library for tkinter
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from Tkinter import *
from Queue import Queue
import threading
class Tk_thread_safe(object):
"""Makes Sure that your app isn't going to crash due to tclstack errors"""
def __init__(self, tk_root):
@gph03n1x
gph03n1x / anti-weev.py
Created August 21, 2013 14:01
Anti-Weev is a tool for deobfuscating the weevely php backdoors
#!/usr/bin/env python
import sys
import base64
try:
sys.argv[1]
except Exception:
print "[*] ./anti-weev.py filename.php"
sys.exit()
else: