Skip to content

Instantly share code, notes, and snippets.

View fapestniegd's full-sized avatar

James S White fapestniegd

View GitHub Profile
var triangleCoords = [
new google.maps.LatLng(28.42231,-96.39889),
new google.maps.LatLng(28.32128,-96.39716),
new google.maps.LatLng(28.05705,-96.83740),
new google.maps.LatLng(27.83036,-97.04280),
new google.maps.LatLng(25.95978,-97.13390),
new google.maps.LatLng(25.82624,-97.42267),
new google.maps.LatLng(26.01459,-97.67529),
new google.maps.LatLng(26.04419,-98.20842),
new google.maps.LatLng(26.20879,-98.45799),
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <dirent.h>
#include <linux/input.h>
#include <sys/types.h>
#include <sys/stat.h>
get '/image' do
canvas = Magick::ImageList.new
canvas.new_image(250, 250, Magick::HatchFill.new('white', 'gray90'))
pixels = Magick::Draw.new
pixels.fill_opacity(0)
pixels.fill('red')
(0 .. 249).each { |x|
pixels.point(x,x)
}
pixels.draw(canvas)
irb(main):001:0> a = Array.new()
=> []
irb(main):002:0> a[0] = 0
=> 0
irb(main):003:0> a[0] += 1
=> 1
irb(main):004:0> a[1] += 1
NoMethodError: undefined method `+' for nil:NilClass
from (irb):4
from :0
[ ["-71", "-49"], ["-47", "-37"], ["-73"] ] =returns=> [ ["-71", "-47", "-73"] ["-71", "-37", "-73"] ["-49", "-47", "-73"] ["-49", "-37", "-73"] ]
or
[
["-71", "-49"],
["-47", "-37"],
["-73"]
]
returns
[
irb(main):027:0> ip2int("10.0.0.1")
=> 167772161
irb(main):028:0> int2ip(167772161+256)
=> "10.0.1.1"
irb(main):029:0> int2ip(167772161+65536)
=> "10.1.0.1"
irb(main):030:0>
Every Core node is assigned a netblock within the /24
node_0 node_1 node_2 node_3 node_4 node_5 node_6 node_7
(up to) ------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------
1 nodes: 172.16.0.0/24
2 nodes: 172.16.0.0/25 172.16.0.128/25
4 nodes: 172.16.0.0/25 172.16.0.64 /25 172.16.0.128/25 172.16.0.192/25
8 nodes: 172.16.0.0/26 172.16.0.32 /26 172.16.0.64 /26 172.16.0.96 /26 172.16.0.128/26 172.16.0.160/25 172.16.0.192/26 172.16.0.224/25
After 8 would be 16 nodes, which would require 16*15=240 IPs to be dedicated to intra-node communication (for full connectivity)
snoopy 173.255.230.254
charlie 66.228.58.246
lucy 96.126.117.107
Host git.websages.com
Hostname git.websages.com
User git
Port 617
#!/usr/bin/env ruby
require 'socket'
require 'time'
require 'kismet'
def bssidcb(proto, fields)
puts "Kismet saw network #{fields['bssid']} manuf #{fields['manuf']} on channel #{fields['channel']}"
end