Skip to content

Instantly share code, notes, and snippets.

🤔
Worried about social network features being added to GitHub

Adam Baxter voltagex

🤔
Worried about social network features being added to GitHub
Block or report user

Report or block voltagex

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@voltagex
voltagex / test-from-residential
Last active Dec 21, 2019
archive.raspberrypi.org is slow
View test-from-residential
46.235.231.111:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4882k 100 4882k 0 0 148k 0 0:00:32 0:00:32 --:--:-- 134k
real 0m32.858s
user 0m0.080s
sys 0m0.147s
View get-peheader.ps1
function Get-PEHeader
{
<#
.SYNOPSIS
Parses and outputs the PE header of a process in memory or a PE file on disk.
PowerSploit Function: Get-PEHeader
Author: Matthew Graeber (@mattifestation)
License: BSD 3-Clause
@voltagex
voltagex / sslh.cfg
Created Mar 20, 2019
Transparent sslh to ssh (get IPs for fail2ban or Match rules) - without iptables
View sslh.cfg
#from http://rutschle.net/pipermail/sslh/2018-April/000674.html
verbose: 1;
foreground: true;
inetd: false;
transparent: true;
user: "sslh";
pidfile: "/var/run/sslh.pid";
syslog_facility: "auth";
listen: ({ host: "10.1.1.222"; port: "443"; });
View build.sh
#!/usr/bin/env bash
set -uoe
sudo apt install -y mingw-w64-tools make yasm libz-mingw-w64
cd ~
MINGW=x86_64-w64-mingw32
PKG_CONFIG_PATH=/opt/mingw64/lib/pkgconfig
LDFLAGS="-L/opt/mingw64/lib/ -L/usr/x86_64-w64-mingw32/lib/"
PREFIX=/opt/mingw64
@voltagex
voltagex / cross-compiler.sh
Created Dec 2, 2018
Raspberry Pi cross compiler on Amazon
View cross-compiler.sh
sudo yum -y install git tmux
sudo yum install -y redhat-rpm-config rpm-build wget
mkdir ~/src
cd ~/src
git clone https://src.fedoraproject.org/rpms/make
cd make
export MAKE_VERSION=$(grep Version make.spec | cut -d ' ' -f 2)
export MAKE_SOURCE=$(grep %{version} make.spec | cut -d ' ' -f2 | sed s/%{version}/$MAKE_VERSION/g)
mkdir -p ~/rpmbuild/SOURCES
@voltagex
voltagex / d-drive.txt
Created Oct 29, 2018
Azure Pipelines VS2017 Agent
View d-drive.txt
2018-10-29T13:34:53.4764892Z ##[section]Starting: PowerShell
2018-10-29T13:34:53.4769351Z ==============================================================================
2018-10-29T13:34:53.4769451Z Task : PowerShell
2018-10-29T13:34:53.4769513Z Description : Run a PowerShell script on Windows, macOS, or Linux.
2018-10-29T13:34:53.4769586Z Version : 2.140.0
2018-10-29T13:34:53.4769639Z Author : Microsoft Corporation
2018-10-29T13:34:53.4769717Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613736)
2018-10-29T13:34:53.4769797Z ==============================================================================
2018-10-29T13:34:54.5708255Z Generating script.
2018-10-29T13:34:54.5789913Z Formatted command: . 'D:\a\1\s\helper.ps1'
@voltagex
voltagex / index.html
Last active Jun 30, 2018
Pug WebComponent
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript">
class PugPhoto extends HTMLElement {
constructor() {
View gist:5ae641a32e030579830aff8715977614
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-MicrosoftUpdate
Install-WindowsUpdate
cinst Microsoft-Windows-Subsystem-Linux -source windowsfeatures
cinst OpenSSH.Client -source windowsfeatures
View ffmpeg_metadata.cs
using System;
using System.IO;
using System.Reflection;
using System.Runtime.InteropServices;
using FFmpeg.AutoGen;
namespace ffmpeg_test
{
class Program
{
@voltagex
voltagex / Dockerfile
Last active Apr 18, 2019
Attempting to build Wireshark tools statically
View Dockerfile
FROM alpine:latest
MAINTAINER Adam Baxter <voltagex@voltagex.org>
#How many jobs to run - i.e. passed to -j
ARG JLEVEL=8
RUN apk --update add git wget xz tar
RUN apk add gcc g++
RUN apk add libc-dev make libtool autoconf automake
RUN apk add python pkgconfig bison flex patch coreutils file linux-headers
You can’t perform that action at this time.