Skip to content
This repository
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 756 lines (706 sloc) 20.737 kb
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 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756
# portscan.rc
# Author: m-1-k-3 (Web: http://www.s3cur1ty.de / Twitter: @s3cur1ty_de)

# This Metasploit RC-File could be used to portscan the network via nmap or via the internal portscanner module
# it also uses the udp_sweep module and some more metasploit modules for getting more infos ans vulns
# RHOSTS is used from the global datastore
# VERBOSE is used from the global datastore
# you can define your own Nmap options via the global NMAPOPTS variable

<ruby>
maxjobs = 8 #throttling if we get too much jobs
versionscanners = 1 # set to 0 if we should not use the metasploit _version modules

#set ports for Metasploit portscanner (change this for your needs):
ports = "7,21,22,23,25,43,50,53,67,68,79,80,109,110,111,123,135,137,138,139,143,161,264,265,389,443,445,500,631,901,995,1241,1352,1433,1434,1521,1720,1723,3306,3389,3780,4662,5800,5801,5802,5803,5900,5901,5902,5903,6000,6666,8000,8080,8443,10000,10043,27374,27665"

if (framework.datastore['RHOSTS'] == nil)
print_line("you have to set RHOSTS globally ... exiting")
return
end

if (framework.datastore['NMAPOPTS'] != nil)
nmapopts = framework.datastore['NMAPOPTS']
else
#default-settings
nmapopts = "-PN -P0 -O -sSV"
end

#we look in the global datastore for a global VERBOSE option and use it
if (framework.datastore['VERBOSE'] == "true")
verbose = 1
else
verbose = 0
end

#default to 15 Threads
if (framework.datastore['THREADS'] == nil)
run_single("setg THREADS 15")
end

#default usage of nmap as portscanner
if (framework.datastore['NMAP'] == nil or framework.datastore['NMAP'] == "true")
nmap = 1
else
nmap = 0
end

# Test and see if we have a database connected
begin
framework.db.hosts
rescue ::ActiveRecord::ConnectionNotEstablished
print_error("Database connection isn't established")
return
end

def jobwaiting(maxjobs,verbose) #thread handling for poor guys
while(framework.jobs.keys.length >= maxjobs)
::IO.select(nil, nil, nil, 2.5)
if(verbose == 1)
print_error("waiting for finishing some modules... active jobs: #{framework.jobs.keys.length} / threads: #{framework.threads.length}")
end
end
end

def infos(serv,host)
print_line("")
print_line("====================================")
print_line("IP: #{host.address}")
print_line("OS: #{host.os_name}")
print_line("Servicename: #{serv.name}")
print_line("Service Port: #{serv.port.to_i}")
print_line("Service Protocol: #{serv.proto}")
print_line("====================================")
print_line("")
end

print_line("")
print_line("============================================")
print_line("starting discovery scanners ... stage 1")
print_line("============================================")
print_line("")

print_line("")
print_line("starting portscanners ...")
print_line("")
print_line("udp_sweep")
run_single("use auxiliary/scanner/discovery/udp_sweep")
run_single("run -j")

if ( nmap == 1 )
print_line("Module: db_nmap")
if (verbose == 1)
print_line("Using Nmap with the following options: -v -n #{nmapopts} #{framework.datastore['RHOSTS']}")
run_single("db_nmap -v -n #{nmapopts} #{framework.datastore['RHOSTS']}")
else
print_line("Using Nmap with the following options: -n #{nmapopts} #{framework.datastore['RHOSTS']}")
run_single("db_nmap -n #{nmapopts} #{framework.datastore['RHOSTS']}")
end
else
print_line("Module: portscan/tcp")
run_single("use auxiliary/scanner/portscan/tcp")
run_single("set PORTS #{ports}")
run_single("run -j")
end

print_line("")
print_line("============================================")
print_line("starting discovery scanners ... stage 2")
print_line("============================================")
print_line("")

run_single("unsetg RHOSTS") # we dont need it anymore

framework.db.workspace.hosts.each do |host|
host.services.each do |serv|
next if not serv.host
next if (serv.state != ServiceState::Open)
#next if (serv.name =~ /smb/ or serv.name =~ /microsoft-ds/ or serv.name =~ /netbios/ or serv.port == 445 or serv.port == 139 or serv.port == 137 or serv.name =~ /smtp/ or serv.port == 25 or serv.name =~ /snmp/ or serv.port == 161 or serv.name =~ /ssh/ or serv.port == 22 or serv.name =~ /telnet/ or serv.port == 23)
if (serv.name =~ /smb/ or serv.name =~ /microsoft-ds/ or serv.name =~ /netbios/ or serv.port == 445 or serv.port == 139 or serv.port == 137)
if(serv.port == 445)
if(versionscanners == 1 or serv.name == nil)
print_line("Module: smb-version")
run_single("use auxiliary/scanner/smb/smb_version")
if(verbose == 1)
infos(serv,host)
end
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end
end

print_line("Module: smb2")
run_single("use auxiliary/scanner/smb/smb2")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)

print_line("Module: nbname")
run_single("use auxiliary/scanner/netbios/nbname")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)

print_line("Module: smb_enumshares")
run_single("use auxiliary/scanner/smb/smb_enumshares")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)

print_line("Module: smb_enumusers")
run_single("use auxiliary/scanner/smb/smb_enumusers")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)

print_line("Module: smb_enumusers_domain")
run_single("use auxiliary/scanner/smb/smb_enumusers_domain")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)

print_line("Module: smb_lookupsid")
run_single("use auxiliary/scanner/smb/smb_lookupsid")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end

if (serv.name =~ /smtp/ or serv.port == 25)
if(versionscanners == 1 or serv.name == nil)
print_line("Module: smtp_version")
run_single("use auxiliary/scanner/smtp/smtp_version")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end

print_line("Module: smtp_enum")
run_single("use auxiliary/scanner/smtp/smtp_enum")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end

if (serv.name =~ /snmp/ or serv.port == 161)
if(versionscanners == 1 or serv.name == nil)
print_line("Module: aix_version")
run_single("use auxiliary/scanner/snmp/aix_version")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end

print_line("Module: snmp_enumshares")
run_single("use auxiliary/scanner/snmp/snmp_enumshares")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)

print_line("Module: snmp_enumusers")
run_single("use auxiliary/scanner/snmp/snmp_enumusers")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)

print_line("Module: snmp_enum")
run_single("use auxiliary/scanner/snmp/snmp_enum")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end

if (serv.name =~ /ssh/ or serv.port == 22)
if(versionscanners == 1 or serv.name == nil)
print_line("Module: ssh_version")
run_single("use auxiliary/scanner/ssh/ssh_version")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end
end

if (serv.name =~ /telnet/ or serv.port == 23)
if(versionscanners == 1 or serv.name == nil)
print_line("Module: telnet_version")
run_single("use auxiliary/scanner/telnet/telnet_version")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end

print_line("Module: telnet_encrypt_overflow")
run_single("use auxiliary/scanner/telnet/telnet_encrypt_overflow")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end

if (serv.name =~ /imap/ or serv.port == 143)
if(versionscanners == 1 or serv.name == nil)
print_line("Module: imap_version")
run_single("use auxiliary/scanner/imap/imap_version")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end
end

if (serv.name =~ /pop3/ or serv.port == 110)
if(versionscanners == 1 or serv.name == nil)
print_line("Module: pop3_version")
run_single("use auxiliary/scanner/pop3/pop3_version")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end
end

if (serv.name =~ /http/ or serv.port == 80 or serv.port == 443)

if(versionscanners == 1 or serv.name == nil)
print_line("Module: http_version")
run_single("use auxiliary/scanner/http/http_version")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if (serv.name =~ /https/ or serv.port == 443)
run_single("set SSL true")
else
run_single("set SSL false")
end
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end

print_line("Module: open_proxy")
run_single("use auxiliary/scanner/http/open_proxy")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if (serv.name =~ /https/)
run_single("set SSL true")
else
run_single("set SSL false")
end
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)

print_line("Module: svn_scanner")
run_single("use auxiliary/scanner/http/svn_scanner")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if (serv.name =~ /https/)
run_single("set SSL true")
else
run_single("set SSL false")
end
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)

print_line("Module: webdav_scanner")
run_single("use auxiliary/scanner/http/webdav_scanner")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if (serv.name =~ /https/)
run_single("set SSL true")
else
run_single("set SSL false")
end
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)

print_line("Module: http_put")
run_single("use auxiliary/scanner/http/http_put")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if (serv.name =~ /https/)
run_single("set SSL true")
else
run_single("set SSL false")
end
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)

print_line("Module: cisco_device_manager")
run_single("use auxiliary/scanner/http/cisco_device_manager")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if (serv.name =~ /https/)
run_single("set SSL true")
else
run_single("set SSL false")
end
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
print_line("Module: cisco_ios_auth_bypass")
run_single("use auxiliary/scanner/http/cisco_ios_auth_bypass")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if (serv.name =~ /https/)
run_single("set SSL true")
else
run_single("set SSL false")
end
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)

print_line("Module: vmware_server_dir_trav")
run_single("use auxiliary/scanner/http/vmware_server_dir_trav")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if (serv.name =~ /https/)
run_single("set SSL true")
else
run_single("set SSL false")
end
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end

if (serv.name =~ /ftp/ or serv.port == 21)
if(versionscanners == 1 or serv.name == nil)
print_line("Module: ftp_version")
run_single("use auxiliary/scanner/ftp/ftp_version")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end

print_line("Module: ftp-anonymous")
run_single("use auxiliary/scanner/ftp/anonymous")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)

print_line("Module: titanftp_xcrc_traversal")
run_single("use auxiliary/admin/ftp/titanftp_xcrc_traversal")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOST #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end

if (serv.name =~ /mssql/ or serv.name =~ /ms-sql/ or serv.port == 1434 or serv.port == 1433)
print_line("Module: mssql_ping")
run_single("use auxiliary/scanner/mssql/mssql_ping")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end

if (serv.name =~ /postgre/ or serv.port == 5432)
if(versionscanners == 1 or serv.name == nil)
print_line("Module: postgres_version")
run_single("use auxiliary/scanner/postgres/postgres_version")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end
end

if (serv.name =~ /mysql/ or serv.port == 3306)
if(versionscanners == 1 or serv.name == nil)
print_line("Module: mysql_version")
run_single("use auxiliary/scanner/mysql/mysql_version")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end
end
if (serv.name =~ /oracle/ or serv.port == 1521)
if(versionscanners == 1 or serv.name == nil)
print_line("Module: tnslsnr_version")
run_single("use auxiliary/scanner/oracle/tnslsnr_version")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end
end

if (serv.port == 7777)
print_line("Module: energizer_duo_detect")
run_single("use auxiliary/scanner/backdoor/energizer_duo_detect")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end

if (serv.name =~ /vnc/ or serv.port == 5900)
print_line("Module: vnc_none_auth")
run_single("use auxiliary/scanner/vnc/vnc_none_auth")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end
if (serv.port == 6000)
print_line("Module: open_x11")
run_single("use auxiliary/scanner/x11/open_x11")
if(verbose == 1)
infos(serv,host)
end
run_single("set RPORT #{serv.port}")
run_single("set RHOSTS #{host.address}")
if(verbose == 1)
run_single("set VERBOSE true")
run_single("run -j")
else
run_single("run -j -q")
end
jobwaiting(maxjobs,verbose)
end
end
run_single("back")
end
</ruby>
Something went wrong with that request. Please try again.