This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket, struct, os, array | |
from scapy.all import ETH_P_ALL | |
from scapy.all import select | |
from scapy.all import MTU | |
class IPSniff: | |
def __init__(self, interface_name, on_ip_incoming, on_ip_outgoing): | |
self.interface_name = interface_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scapy.all import * | |
def pkt_callback(pkt): | |
pkt.show() # debug statement | |
sniff(iface="eth0", | |
prn=pkt_callback, filter="ip", store=0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const _ = require('lodash'); | |
const spawn = require('child_process').spawn; | |
// Holds a list of all flattened packages used in this module | |
let packages = []; | |
/** | |
* Run through the npm dependencies object and recursively accumulate all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const socks = require('socksv5'); | |
const srv = socks.createServer(function(info, accept, deny) { | |
accept(); | |
}); | |
srv.listen(50099, 'localhost', function() { | |
console.log('SOCKS server listening on port 50099'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Match on all types of devices but tablet devices and joysticks | |
Section "InputClass" | |
Identifier "libinput pointer catchall" | |
MatchIsPointer "on" | |
MatchDevicePath "/dev/input/event*" | |
Driver "libinput" | |
EndSection | |
Section "InputClass" | |
Identifier "libinput keyboard catchall" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
class Analyzer | |
def initialize(filename) | |
@filename = filename | |
end | |
def analyze | |
data = [] | |
File.open(@filename) do |f| | |
f.each_line do |line| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
class Analyzer | |
def initialize(filename) | |
@filename = filename | |
end | |
def analyze | |
data = [] | |
File.open(@filename) do |f| | |
f.each_line do |line| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Go to line | |
- Esc | |
- Line number | |
- shift-g | |
Auto complete | |
- Ctrl-n | |
Multi-line-edit | |
- Esc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in {0..64} | |
do | |
echo displaying $i thread | |
rbtrace -p 2475 -e "Thread.list[$i].backtrace.join('\n')" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import boto3 | |
import json | |
import os | |
client = boto3.client('ec2') | |
# filter.json | |
# [ |
OlderNewer