-
Notifications
You must be signed in to change notification settings - Fork 8
/
s0x4.pl
executable file
·34 lines (31 loc) · 980 Bytes
/
s0x4.pl
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
#!/usr/bin/perl
use strict;
use warnings;
use Term::ANSIColor;
use Getopt::Long;
system('clear');
print color "BRIGHT_GREEN";
print "\n[---] S0x4 - Same Site Scripting Scanner [---]\n";
print "[---] Written by: Mustafa - Twitter: twitter.com/c0brabaghdad1 [---]\n";
my $options = GetOptions(
'h=s' => \my $host,
'l=s' => \my $list,
) or die "Invalid options passed to $0\n";
chomp $host;
if(defined($host) and defined($list)){print "\n\n";
if(open(LIST,'<', $list)or die $!){
while(my $custom_wordlist = <LIST>){
chomp $custom_wordlist;
my $full_host =$custom_wordlist .".". $host;
my $output = `host $full_host`;
print color "CYAN";
print $output;
print color "RED";
print "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n";
}
}
}
if(!defined($host) or !defined($list)){
print color "YELLOW";
print "Usage: : /s0x4.pl -h target.tld -l wordlist.txt\n";
exit 1;}