Skip to content

Instantly share code, notes, and snippets.

View kost's full-sized avatar
💭
I'm upto something

kost kost

💭
I'm upto something
View GitHub Profile
<html>
<head>
<!--
Amazon S3 Bucket listing.
Copyright (C) 2008 Francesco Pasqualini
This program is free software: you can redistribute it and/or modify
@kost
kost / syringe.c
Created April 26, 2014 05:00
A General Purpose DLL & Code Injection Utility
/*
*
* syringe.c v1.2
*
* Author: Spencer McIntyre (Steiner) <smcintyre [at] securestate [dot] com>
*
* A General Purpose DLL & Code Injection Utility
*
* Copyright 2011 SecureState
*
@kost
kost / shellcodeexec.cs
Created April 26, 2014 05:16
Use .NET csc.exe to create a malicious EXE on locked down systems
using System;
using System.Reflection;
using System.Runtime.InteropServices;
namespace ExecASMHardcoded
{
class Program
{
[DllImport("kernel32.dll", SetLastError = true)]
static extern bool VirtualProtect(IntPtr lpAddress, uint dwSize, uint flNewProtect, out uint lpflOldProtect);
public delegate uint Ret1ArgDelegate(uint address);
@kost
kost / wildfly-password-generator.pl
Created February 17, 2015 10:22
WildFly Password Generator
#!/usr/bin/perl
use strict;
use Digest::MD5 qw(md5 md5_hex md5_base64);
my $user=shift;
my $pass=shift;
my $realm='ManagementRealm'; # or ApplicationRealm
my $plaintext=$user.":".$realm.":".$pass;
@kost
kost / gist:b04b6a05372e4bbb067f
Last active August 29, 2015 14:25
Update rooted Nexus 5 - links
https://gist.github.com/eyecatchup/ec0a852428c19705380e
https://gist.github.com/eyecatchup/dab5cf7977008e504213
http://forum.xda-developers.com/google-nexus-5/general/ref-nexus-5-stock-ota-urls-t2475327
https://twrp.me/
http://forum.xda-developers.com/showthread.php?t=1538053
@kost
kost / gist:1375269
Created November 18, 2011 01:35
www::mechanize no cert ssl tls checking or verification
export PERL_LWP_SSL_VERIFY_HOSTNAME=0
use WWW::Mechanize;
my $mech = WWW::Mechanize->new(
ssl_opts => {
verify_hostname => 0,
},
);
@kost
kost / datapipe6.c
Created January 22, 2012 06:13 — forked from feuvan/datapipe6.c
Datapipe6 - ipv6-aware fork of datapipe.c
/*
* Datapipe6 - ipv6-aware fork of datapipe.c
* Sample usage:
* datapipe6 localipv4addr 23 remoteipv6addr 23
*
*
* Written by feuvan <feuvan@feuvan.net>
* Original ipv4 version by Jeff Lawson <jlawson@bovine.net>
* See statement below
*
@kost
kost / uri.js
Created April 21, 2012 10:13 — forked from jlong/uri.js
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.host; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
REM Netsparker batch invocation
REM Copyright (C) Vlatko Kosturjak - Kost
On Error Resume Next
Set args = Wscript.Arguments
REM iterate through each argument/file
For Each arg in args
filename = arg
@kost
kost / cisco-4-sha256.pl
Last active December 15, 2015 01:09
Cisco Password Type 4 - SHA256 implementation in Perl
#!/usr/bin/perl
# Basic Cisco type 4 - password encoder by Kost
# Base64 custom encoder taken from VOMS::Lite::Base64
# Example: ./cisco-4-sha256.pl password
use strict;
use Digest::SHA qw(sha256);
my %Alphabets = (
CISCO => "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",