Skip to content

Instantly share code, notes, and snippets.

View witchfindertr's full-sized avatar
🏠
Germany

witchfindertr

🏠
Germany
  • london
View GitHub Profile
@witchfindertr
witchfindertr / runner.cs
Created December 3, 2015 17:59 — forked from hkulekci/runner.cs
c# run program on background with inline event handler.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Threading;
using System.Windows.Forms;
using System.ComponentModel;
namespace TestProject
@witchfindertr
witchfindertr / sehir_tespiti.js
Created March 21, 2016 19:49 — forked from ekrembk/sehir_tespiti.js
Kullanıcının şehrini Javascript ile otomatik tespit etme. HTML5 Geocoding API ve Reverse Geocoding için Yandex Geocoder kullanıldı.
function otomatikBul() {
// Browser desteğini kontrol et
if( ! navigator.geolocation ) {
console.log( 'Broserınız desteklemiyor. Lütfen manual seçim yapınız.' );
return;
}
// Uyarı
console.log( 'Koordinatlar alınıyor...' );
using System;
using OpenQA.Selenium;
using OpenQA.Selenium.Edge;
using OpenQA.Selenium.Remote;
namespace EdgeDriverTests
{
public class Program
{
/*
@witchfindertr
witchfindertr / insert-posts.php
Created August 9, 2016 15:22
WordPress: Insert a post into WordPress from an external script
<?php
// Load WordPress
require_once 'path/to/www/wp-load.php';
require_once ABSPATH . '/wp-admin/includes/taxonomy.php';
// Set the timezone so times are calculated correctly
date_default_timezone_set('Europe/London');
// Create post
@witchfindertr
witchfindertr / ssyn.c
Created October 7, 2016 14:19 — forked from z0mbiehunt3r/ssyn.c
Spoofed SYN by eKKiM - ssyn.c
/*
Spoofed SYN by eKKiM
Educational purpose only please.
Compile with
gcc syn.c -pthread
*/
#include <stdio.h>
#include <stdlib.h>
#include <netinet/tcp.h>
#include <netinet/ip.h>
@witchfindertr
witchfindertr / httpget.js
Created June 14, 2017 23:34 — forked from duncansmart/httpget.js
Download a file with Windows Script Host
// httpget.js: download a file (Windows Script Host)
// usage: cscript httpget.js <url> <file>
(function() {
if (WScript.Arguments.Length != 2) {
WScript.Echo("Usage: httpget.js <url> <file>")
WScript.Quit(1)
}
var url = WScript.Arguments(0)
@witchfindertr
witchfindertr / AddMeFastExample.java
Created August 1, 2017 17:17 — forked from ikstob/AddMeFastExample.java
Example of using Selenium from Java
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedCondition;
@witchfindertr
witchfindertr / github_bugbountyhunting.md
Created August 29, 2017 13:03 — forked from EdOverflow/github_bugbountyhunting.md
My tips for finding security issues in GitHub projects.

GitHub for Bug Bounty Hunters

GitHub repositories can disclose all sorts of potentially valuable information for bug bounty hunters. The targets do not always have to be open source for there to be issues. Organization members and their open source projects can sometimes accidentally expose information that could be used against the target company. in this article I will give you a brief overview that should help you get started targeting GitHub repositories for vulnerabilities and for general recon.

Mass Cloning

You can just do your research on github.com, but I would suggest cloning all the target's repositories so that you can run your tests locally. I would highly recommend @mazen160's GitHubCloner. Just run the script and you should be good to go.

$ python githubcloner.py --org organization -o /tmp/output
var _ = require('lodash');
var data = {};
var casper = require('casper').create({
viewportSize: {
width: 800,
height: 600
},
clientScripts: [
'include/jquery-1.11.3.min.js',
'include/lodash.min.js'
@witchfindertr
witchfindertr / evaldecode.php
Created October 15, 2017 15:04 — forked from yireo/evaldecode.php
Decode evil scripts encoded with eval(gzinflate(base64_decode()))
<?php
/*
* Basic script to decrypt files encoded with eval(gzinflate(base64_decode($data)));
*/
$file = 'encrypted.php';
$content = file_get_contents($file);
function evaldecode($content, $step = 0) {
//echo "STEP $step\n";