Skip to content

Instantly share code, notes, and snippets.

ethack

Block or report user

Report or block ethack

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
View Effective_Engineer.md

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@ethack
ethack / asn
Created Jun 18, 2018 — forked from nitefood/asn
ASN/IP/Route/hostname command line lookup tool to map any network to the corresponding ASN and prefix
View asn
#!/bin/bash
############################################################################################################
# ----------------------------------------------------------------------
# ASN/IPv4/Prefix lookup tool. Uses Team Cymru's whois service for data.
# ----------------------------------------------------------------------
# example usage:
# asn <ASnumber> -- to lookup matching ASN data. Supports "as123" and "123" formats (case insensitive)
# asn <IP.AD.DR.ESS> -- to lookup matching route and ASN data
# asn <ROUTE> -- to lookup matching ASN data
@ethack
ethack / Dockerfile
Created Feb 28, 2018 — forked from Zalgo2462/Dockerfile
ubuntu-user:16.04
View Dockerfile
# docker built -t ubuntu-user:16.04 .
FROM ubuntu:16.04
RUN apt-get update && apt-get install sudo && \
useradd -m -s /bin/bash user && \
echo "user ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/user && \
chmod 0440 /etc/sudoers.d/user
RUN apt-get -y install git
USER user
View nosleep.ahk
CoordMode, Mouse, Screen
MouseGetPos, CurrentX, CurrentY
Loop {
Sleep, 60000
LastX := CurrentX
LastY := CurrentY
MouseGetPos, CurrentX, CurrentY
If (CurrentX = LastX and CurrentY = LastY) {
@ethack
ethack / README.md
Last active Jan 1, 2020
Scripts that simulate typing the clipboard contents. Useful when pasting is not allowed.
View README.md

It "types" the contents of the clipboard.

Why can't you just paste the contents you ask? Sometimes pasting just doesn't work.

  • One example is in system password fields on OSX.
  • Sometimes you're working in a VM and the clipboard isn't shared.
  • Other times you're working via Remote Desktop and again, the clipboard doesn't work in password boxes such as the system login prompts.
  • Connected via RDP and clipboard sharing is disabled and so is mounting of local drives. If the system doesn't have internet access there's no easy way to get things like payloads or Powershell scripts onto it... until now.

Windows

The Windows version is written in AutoHotKey and easily compiles to an executable. It's a single line script that maps Ctrl-Shift-V to type the clipboard.

@ethack
ethack / Notes.md
Last active Sep 5, 2015
InstallUtility Functions
View Notes.md
@ethack
ethack / netkatz.cs
Last active Apr 30, 2019
Downloads and Executes Mimikatz In Memory From GitHub
View netkatz.cs
using System;
using System.IO;
using System.Net;
using System.Text;
using System.IO.Compression;
using System.Collections.Generic;
using System.Configuration.Install;
using System.Runtime.InteropServices;
@ethack
ethack / reflect.py
Last active Oct 12, 2015 — forked from huyng/reflect.py
HTTP Reflector #python
View reflect.py
#!/usr/bin/env python
# Reflects the requests from HTTP methods GET, POST, PUT, and DELETE
# Written by Nathan Hamiel (2010)
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
from optparse import OptionParser
class RequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
@ethack
ethack / keybase.md
Last active Oct 12, 2015
Keybase Identify Proof
View keybase.md

Keybase proof

I hereby claim:

  • I am ethack on github.
  • I am ethanrobish (https://keybase.io/ethanrobish) on keybase.
  • I have a public key whose fingerprint is 5BE9 053D 9CB6 25DE 6D47 72B8 C9FA CFF9 6A94 0B7B

To claim this, I am signing this object:

@ethack
ethack / command.js
Last active Oct 12, 2015 — forked from rocbear/command.js
#Tilde Add to Pocket
View command.js
javascript:(function(){var%20e=function(t,n,r,i,s){var%20o=[3372847,7957496,3224846,2976225,3809958,3030325,9495199,5515531,3532114,6190427];var%20i=i||0,u=0,n=n||[],r=r||0,s=s||0;var%20a={'a':97,'b':98,'c':99,'d':100,'e':101,'f':102,'g':103,'h':104,'i':105,'j':106,'k':107,'l':108,'m':109,'n':110,'o':111,'p':112,'q':113,'r':114,'s':115,'t':116,'u':117,'v':118,'w':119,'x':120,'y':121,'z':122,'A':65,'B':66,'C':67,'D':68,'E':69,'F':70,'G':71,'H':72,'I':73,'J':74,'K':75,'L':76,'M':77,'N':78,'O':79,'P':80,'Q':81,'R':82,'S':83,'T':84,'U':85,'V':86,'W':87,'X':88,'Y':89,'Z':90,'0':48,'1':49,'2':50,'3':51,'4':52,'5':53,'6':54,'7':55,'8':56,'9':57,'\/':47,':':58,'?':63,'=':61,'-':45,'_':95,'&':38,'$':36,'!':33,'.':46};if(!s||s==0){t=o[0]+t}for(var%20f=0;f<t.length;f++){var%20l=function(e,t){return%20a[e[t]]?a[e[t]]:e.charCodeAt(t)}(t,f);if(!l*1)l=3;var%20c=l*(o[i]+l*o[u%o.length]);n[r]=(n[r]?n[r]+c:c)+s+u;var%20p=c%(50*1);if(n[p]){var%20d=n[r];n[r]=n[p];n[p]=d}u+=c;r=r==50?0:r+1;i=i==o.length-1?0:i+1}if(s==162){var%20v
You can’t perform that action at this time.