Skip to content

Instantly share code, notes, and snippets.

function Import-ShodanAPIKey
{
[CmdletBinding()]
Param
(
[Parameter(Mandatory=$true,
ValueFromPipelineByPropertyName=$true,
Position=1)]
[securestring]$MasterPassword
function Confirm-IsAdmin
{
(whoami /all | Select-String S-1-16-12288) -ne $null
}
if (Confirm-IsAdmin)
{
Write-Host "Modifying interfaces with public Profile"
$nlm = [Activator]::CreateInstance([Type]::GetTypeFromCLSID([Guid]"{DCB00C01-570F-4A9B-8D69-199FDBA5723B}"))

Keybase proof

I hereby claim:

  • I am darkoperator on github.
  • I am darkoperator (https://keybase.io/darkoperator) on keybase.
  • I have a public key whose fingerprint is 15B7 F997 6A55 511C 35AC 09BB 0404 C8BC C764 38E3

To claim this, I am signing this object:

require 'rubygems'
require 'wirble'
require 'irb/completion'
require 'pp'
IRB.conf[:AUTO_INDENT] = true
Wirble.init
Wirble.colorize
class Object
# get all the methods for an object that aren't basic methods from Object
def local_methods
# Terminal Colors
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
# Compilier options
export ARCHFLAGS="-arch x86_64"
export CC=/usr/bin/gcc-4.2
# SVN Keyowkrds
alias svnkeywords='svn propset svn:keywords '\''Rev Revision Id Header'\'''
require 'formula'
class John < Formula
url 'http://www.openwall.com/john/g/john-1.7.8-jumbo-4.tar.bz2'
homepage 'http://www.openwall.com/john/'
md5 '7b50641248e9570341d5474b7c83f087'
fails_with_llvm
def install
require 'formula'
class Wireshark < Formula
url 'http://wiresharkdownloads.riverbed.com/wireshark/src/wireshark-1.6.1.tar.bz2'
md5 'dc1e8c9800b64130674b120a183e2308'
homepage 'http://www.wireshark.org'
depends_on 'gnutls' => :optional
depends_on 'pcre' => :optional
depends_on 'glib'
autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete
autocmd FileType ruby,eruby let g:rubycomplete_buffer_loading = 1
autocmd FileType ruby,eruby let g:rubycomplete_rails = 1
autocmd FileType ruby,eruby let g:rubycomplete_classes_in_global = 1
autocmd FileType ruby,eruby let g:rubycomplete_include_object = 1
autocmd FileType ruby,eruby let g:rubycomplete_include_objectspace = 1
autocmd CursorMoved * silent! exe printf('match IncSearch /\<%s\>/', expand('<cword>'))
set nu " Set line numbers
set nocompatible " We're running Vim, not Vi!
syntax on " Enable syntax highlighting
require 'formula'
class Libdnet < Formula
url 'http://libdnet.googlecode.com/files/libdnet-1.12.tgz'
homepage 'http://code.google.com/p/libdnet/'
md5 '9253ef6de1b5e28e9c9a62b882e44cc9'
def install
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
production:
adapter: postgresql
database: <database name>
username: <use we created>
password: <Password we gave the user>
host: 127.0.0.1
port: 5432
pool: 75
timeout: 5