Skip to content

Instantly share code, notes, and snippets.

@xntrik
xntrik / ssa.attack
Created May 3, 2015 12:18
Demo gauntlt
@slow
Feature: Simple security scan against SSA
Background:
Given "nmap" is installed
And "curl" is installed
And "arachni" is installed
And the following profile:
| name | value |
| hostname | ssa.asteriskinfosec.com.au |
| host | ssa.asteriskinfosec.com.au |
@xntrik
xntrik / gist:38ce5b19ac6518c957e7
Created February 8, 2015 03:51
Nokogiri MOTHER FUCKN on Yosemite
This appears to work
# gem install nokogiri -- --with-iconv-lib=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/lib --with-iconv-include=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include
@xntrik
xntrik / keybase.md
Created January 5, 2015 02:44
keybase.md

Keybase proof

I hereby claim:

  • I am xntrik on github.
  • I am xntrik (https://keybase.io/xntrik) on keybase.
  • I have a public key whose fingerprint is F61F B27A 6FFD F1BB F3BD BD1F F68A 4ABD B663 DE5E

To claim this, I am signing this object:

// print monkey's asshole
fmt.Println(`
__
/ _,\
\_\
,,,, _,_) # /)
(= =)D__/ __/ //
C/^__)/ _( ___//
\_,/ -. '-._/,--'
@xntrik
xntrik / command.js
Created July 22, 2014 23:54
New setInterval for BeEF
//
// Copyright (c) 2006-2014 Wade Alcorn - [email protected]
// Browser Exploitation Framework (BeEF) - http://beefproject.com
// See the file 'doc/COPYING' for copying permission
//
beef.execute(function() {
window.setInterval(function() {
//perform task
//set something to var data
@xntrik
xntrik / gist:8816531
Created February 5, 2014 02:33
Quick Ruby Web Server one liner
ruby -run -e httpd . -p 5000
@xntrik
xntrik / gist:6472934
Created September 7, 2013 05:05
This is the proposed config.yaml file for the internal IP detection using NateVW's WebRTC IP detection
#
# Copyright (c) 2006-2013 Wade Alcorn - [email protected]
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
beef:
module:
get_internal_ip_webrtc:
enable: true
category: "Host"
@xntrik
xntrik / gist:6208970
Created August 12, 2013 08:02
Playing with Mozilla's Minion
Steps I took:
- followed the documented download
- Ran 5 panes in tmux to start the various workers
- cloned the additional plugins I wanted
- ran their respective python ./setup develop
- you have to restart the workers to get these plugins working
- udpate your user to an administrator:
$ mongo
> use minion
@xntrik
xntrik / gist:6170608
Last active December 20, 2015 17:39
Git merge selectively from different branch
$ git branch
* master
twitter_integration
$ git checkout twitter_integration app/models/avatar.rb db/migrate/20090223104419_create_avatars.rb test/unit/models/avatar_test.rb test/functional/models/avatar_test.rb
$ git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# new file: app/models/avatar.rb
@xntrik
xntrik / gist:6136703
Last active December 20, 2015 13:09
Deploying Rails to EC2
http://railscasts.com/episodes/347-rubber-and-amazon-ec2?view=asciicast
https://github.com/rubber/rubber/wiki/Commands
cap rubber:create #creates instances - but - sometimes, depending on the AMI, and the *mood* of the EC2 gods, you can't establish that initial SSH session ..
Eventually though, they should be setup.
Good trick, if, you can start the instance creation, but, it times out. You can kill that process, and restart the instance a few times until you can SSH to it standalone.