Skip to content

Instantly share code, notes, and snippets.

View hvisage's full-sized avatar
💭
I may be slow to respond.

hvisage

💭
I may be slow to respond.
View GitHub Profile
@grawity
grawity / dhcp_option119.py
Last active April 19, 2023 17:24 — forked from SmartFinn/dhcp_option119.py
a script for converting domain names to DHCP Option 119 (Domain Search Option)
View dhcp_option119.py
#!/usr/bin/env python3
"""Command generator for setting DHCP Option 119
This script converts the specified domain names to DHCP Option 119
(Domain Search Option) and prints commands for various DHCP servers.
USAGE:
./dhcp_option119.py DOMAIN ...
EXAMPLE:
@dalenunns
dalenunns / hacker_howto.md
Last active December 28, 2022 12:51
A list of resources on how to be a hacker/pentester/security person - from #infosec on zatech.slack.com
View hacker_howto.md

Howto be a Hacker/Pentester/Security person - List of resources

I've just stolen HypnZA list of suggested links and added a few others by various people. (Please feel free to send me other links/info you think might be useful to add.)

HypnZA's commonly shared list (in the correct order):

  1. https://www.hacksplaining.com
  2. https://pentesterlab.com/exercises/web_for_pentester and https://pentesterlab.com/exercises/web_for_pentester_II
  3. Watch Ippsec's HackTheBox videos from oldest to newest, but attempt the box in the video before watching the video (requires a paid hackthebox account to access the machines in the videos)
@dalenunns
dalenunns / SAResources.md
Last active June 17, 2023 13:39
List of SA Resources
View SAResources.md
@xVir
xVir / vpn.md
Created August 29, 2016 07:16
Scripts for enabling and disabling VPN in Control Plane
View vpn.md

This script will be usefull if you want to enable VPN automatically on coming to work and to disable it on escaping from work using great Control Plane app.

It is assumed that you use Tunnelblick to manage VPN connections.

To connect to VPN:

set q to "<your_connection_name>"
tell application "Tunnelblick"
	set configs to get name of configurations
	if q is in configs then
@mcupak
mcupak / ssl.cli
Last active November 11, 2019 11:23
Configuring WildFly behind a reverse proxy with TLS - https://mirocupak.com/configuring-wildfly-behind-a-reverse-proxy-with-tls/
View ssl.cli
# WildFly reverse proxy setup script.
# Run with: $WILDFLY_HOME/bin/jboss-cli.sh --connect --file=ssl.cli
batch
/subsystem=undertow/server=default-server/http-listener=default:write-attribute(name=redirect-socket,value=proxy-https)
/subsystem=undertow/server=default-server/http-listener=default:write-attribute(name=proxy-address-forwarding,value=true)
/socket-binding-group=standard-sockets/socket-binding=proxy-https:add(port=443)
run-batch
@rk295
rk295 / gist:0bd88d388683a328b9ce
Created August 29, 2014 16:05
xferlog grok
View gist:0bd88d388683a328b9ce
%{DAY} %{MONTH} %{MONTHDAY} %{TIME} %{YEAR} %{NUMBER:xferTime} %{IP:remoteHost} %{NUMBER:fileSize} %{PATH:fileName} %{WORD:transferType} %{WORD: specialActionFlag} %{WORD:direction} %{WORD:accessmode} %{WORD:username} %{WORD:serviceName} %{WORD:authenticationMethod} %{DATA:aut} %{WORD:completionStatus}
https://grokdebug.herokuapp.com/
Fri Aug 29 16:53:15 2014 4 173.220.95.58 873550 /u01/clients/globeph/source/live-feed/140828_Ariana_Grande-JBB/IMG_7240.jpg b _ i r globeph ftp 0 * c
@analytically
analytically / gist:5760207
Created June 11, 2013 20:13
Ansible /etc/network/interfaces template
View gist:5760207
# {{ ansible_managed }}
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
{% if ansible_interfaces|length > 2 %}