Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

hvisage

💭
I may be slow to respond.
Block or report user

Report or block hvisage

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
@hvisage
hvisage / hacker_howto.md
Created Jan 21, 2019 — forked from dalenunns/hacker_howto.md
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)
@hvisage
hvisage / SAResources.md
Created Jan 21, 2019 — forked from dalenunns/SAResources.md
List of SA Resources
View SAResources.md
View keybase.md

Keybase proof

I hereby claim:

  • I am hvisage on github.
  • I am hvisage (https://keybase.io/hvisage) on keybase.
  • I have a public key whose fingerprint is 1465 2C66 7427 E67B E886 CB40 9C13 84B1 168F D423

To claim this, I am signing this object:

@hvisage
hvisage / dms-list-csv.sh
Last active Jul 4, 2017
Take dead man snitches list into csv for reports
View dms-list-csv.sh
#!/bin/bash
TAG=aquacheck
API=$1
curl -su ${APIKEY}: https://api.deadmanssnitch.com/v1/snitches \
| jq -r 'sort_by(.status)|.[] | select(.tags[] | contains("${TAG}")) |[.name, .interval, .checked_in_at, .status]|@csv'
@hvisage
hvisage / looping-items-roles
Created Sep 20, 2015
looping over items for roles
View looping-items-roles
Yes, pass the array in via the role arguments and then loop over them inside the role itself. For example:
roles:
- { role: ruby, versions: [ "1.9.3-p448", "2.0.0-p247"]}
Then use "with_items: versions" inside the role.
@hvisage
hvisage / getting jq to output ansible facts
Last active Dec 25, 2017
ansible & jq output of facts
View getting jq to output ansible facts
for i in setup/*; do echo $if; jq '[.ansible_facts.ansible_hostname,.ansible_facts.ansible_devices.sda.size , .ansible_facts.ansible_all_ipv4_addresses[0]]' -c $i;done >list
and then, note the | @csv
for i in setup/*; do echo $if; jq '[.ansible_facts.ansible_hostname,.ansible_facts.ansible_devices.sda.size , .ansible_facts.ansible_all_ipv4_addresses[0]] | @csv' -r $i;done
"qa-pgdb01","120.00 GB","10.100.13.70"
for i in setup/*; do jq '[ .ansible_facts.ansible_hostname, .ansible_facts.ansible_all_ipv4_addresses[0] ] | join(", ")' -j $i;echo;done
qa-pgdb01, 10.100.13.70
@hvisage
hvisage / hosts
Last active Aug 28, 2015 — forked from fclairamb/hosts
TINC setup ansible playbook It generates a private/public key pair on each host, get each public key and push them back to each server
View hosts
# sample config file
[do]
198.199.74.236 tinc_ip=10.1.1.1 hostname=ca_1_1 tinc_connectto=ca_2_2
192.34.60.13 tinc_ip=10.1.1.2 hostname=ca_1_2 tinc_connectto=ca_1_1
198.199.70.163 tinc_ip=10.1.1.3 hostname=ca_1_3 tinc_connectto=ca_1_2
198.199.71.204 tinc_ip=10.1.2.1 hostname=ca_2_1 tinc_connectto=ca_1_3
198.199.70.208 tinc_ip=10.1.2.2 hostname=ca_2_2 tinc_connectto=ca_2_1
@hvisage
hvisage / git-submodule
Created Aug 15, 2015
git submodule example
View git-submodule
git submodule add https://github.com/auraltension/ansible-role-docker-debian.git roles/docker-debian
View gist:9c668061be8af93c20c4
%{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
You can’t perform that action at this time.