-
Notifications
You must be signed in to change notification settings - Fork 73
/
zackattack.rb
32 lines (30 loc) · 1.07 KB
/
zackattack.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env ruby
#encoding: ASCII-8BIT
$: << File.expand_path(File.dirname(__FILE__))
$: << File.expand_path(File.dirname(__FILE__) + "/lib")
$: << File.expand_path(File.dirname(__FILE__) + "/clients")
$: << File.expand_path(File.dirname(__FILE__) + "/payloads")
require 'config'
require 'zfhttpd'
require 'zfsmbd'
require 'zfadmingui'
require 'zfsocks'
puts "=================================================="
puts "Here Goes ZackAttack! Booting Up!....."
puts "=================================================="
#clear out old sessions / stuf TODO: consolidate into an init sequence / db cleanup
db = ZFdb::DB.new()
# TODO catch readonly andother db errors
db.ClearActiveSessions
db.db.execute("DELETE FROM aresults")
smb = ZFsmb::Server.new(SMBDIP) #only works on 445
http = ZFhttpd::Server.new(HTTPIP,HTTPPort)
gui = ZFadmingui::Http.new(MGMTIP,MGMTPort)
socks = ZFsocks::Server.new(SOCKSIP,SOCKSPort)
#add CLI
c = Thread.new{gui.start()}
d = Thread.new{socks.start()}
b = Thread.new{smb.start()}
a = Thread.new{http.start()}
c.join
puts "exiting"