-
Notifications
You must be signed in to change notification settings - Fork 2
/
reconwolf.pl
713 lines (640 loc) · 29.5 KB
/
reconwolf.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
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
#!/usr/bin/perl
# Coded By Baskaran (aka) XyberWolf
use if $^O eq "MSWin32", Win32::Console::ANSI;
use Getopt::Long;
use HTTP::Request;
use HTTP::Response;
use HTTP::Headers;
use HTTP::Request::Common qw(POST);
use HTTP::Request::Common qw(GET);
use IO::Select;
use IO::Socket;
use IO::Socket::INET;
use Term::ANSIColor;
use URI::URL;
use Data::Dumper;
use LWP::UserAgent;
use LWP::Simple;
use JSON qw( decode_json encode_json );
my $ua = LWP::UserAgent->new;
$ua = LWP::UserAgent->new(keep_alive => 1);
$ua->agent("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31");
GetOptions(
"h|help" => \$help,
"i|info=s" => \$info,
"w|whois=s" => \$whois,
"l|location=s" => \$geo,
"p|port=s" => \$op,
"s|subdomain=s" => \$sub,
"r|reverseip=s" => \$rev,
"t|tech=s" => \$tech,
"c|cloudflare=s" => \$cloud,
"cms|cms=s" => \$cms,
);
if ($help) { banner();help(); }
if ($info) { banner();Websiteinformation(); }
if ($whois) { banner();Domainwhoislookup(); }
if ($geo) { banner();Findiplocation(); }
if ($op) { banner();port(); }
if ($sub) { banner();subdomain(); }
if ($rev) { banner();revip();}
if ($tech) { banner();Technology();}
if ($cloud) { banner();CloudFlare(); }
if ($cms) { banner();cms(); }
unless ($help|$info|$whois|$geo|$op|$sub|$rev|$tech|$cloud|$cms) { banner();menu(); }
#--------------------------------------------------------------#
# Help #
#--------------------------------------------------------------#
sub help {
print line_u(),color('bold cyan'),"# ";
print item('1'),"Website Information ";
print color('bold red'),"=> ";
print color("bold white"),"reconwolf -i site.com";
print color('bold cyan')," # \n";
print color('bold cyan'),"# ";
print item('2'),"Domain Whois Lookup ";
print color('bold red'),"=> ";
print color("bold white"),"reconwolf -w site.com";
print color('bold cyan')," # \n";
print color('bold cyan'),"# ";
print item('3'),"Find IP Location ";
print color('bold red')," => ";
print color("bold white"),"reconwolf -l site.com";
print color('bold cyan')," # \n";
print color('bold cyan'),"# ";
print item('4'),"Active Port Scanner";
print color('bold red')," => ";
print color("bold white"),"reconwolf -p site.com/127.0.0.1";
print color('bold cyan')," # \n";
print color('bold cyan'),"# ";
print item('5'),"Subdomain Scanner ";
print color('bold red')," => ";
print color("bold white"),"reconwolf -s site.com";
print color('bold cyan')," # \n";
print color('bold cyan'),"# ";
print item('6'),"Reverse IP Lookup ";
print color('bold red')," => ";
print color("bold white"),"reconwolf -r site.com";
print color('bold cyan')," # \n";
print color('bold cyan'),"# ";
print item('7'),"Technology lookup ";
print color('bold red')," => ";
print color("bold white"),"reconwolf -t site.com";
print color('bold cyan')," # \n";
print color('bold cyan'),"# ";
print item('8'),"Bypass CloudFlare ";
print color('bold red')," => ";
print color("bold white"),"reconwolf -c site.com";
print color('bold cyan')," # \n";
print color('bold cyan'),"# ";
print item('9'),"CMS Scanner ";
print color('bold red')," => ";
print color("bold white"),"reconwolf -cms site.com";
print color('bold cyan')," # \n",line_d();
}
#--------------------------------------------------------------#
# Banner #
#--------------------------------------------------------------#
sub banner {
if ($^O =~ /MSWin32/) {system("mode con: cols=130 lines=40");system("cls"); }else { system("resize -s 40 130");system("clear"); }
print color('bold red')," ,/{}\n";
print color('bold red')," ,/ {|\n";
print color('bold red')," ,,,/ {|,\n";
print color('bold red')," __--~~ {| ~-,\n";
print color('bold red')," __--~~ { `\\\n";
print color('bold red')," ,__ \\\n";
print color('bold red')," `,\\{),\\,\n";
print color('bold green')," /####### /## /## /## /###### ";print color('bold red')," __-~ `_ ~-_\n";
print color('bold green')," | ##__ ## | ## /# | ## | ## /##__ ## ";print color('bold red')," _-~ ~~-_`~-_\n";
print color('bold green')," | ## \\ ## /###### /####### /###### /####### | ## /###| ## /###### | ##| ## \\__/ ";print color('bold red')," ' `~-_`~-__\n";
print color('bold green')," | #######/ /##__ ## /##_____/ /##__ ##| ##__ ## | ##/## ## ## /##__ ##| ##| #### ";print color('bold red')," `, `~-\\_|\n";
print color('bold green')," | ##__ ##| ########| ## | ## \\ ##| ## \\ ## | ####_ ####| ## \\ ##| ##| ##_/ ";print color('bold red')," `, _-----___ _,'\n";
print color('bold green')," | ## \\ ##| ##_____/| ## | ## | ##| ## | ## | ###/ \\ ###| ## | ##| ##| ## ";print color('bold red')," / /--__ ~~--__ `~,~\n";
print color('bold green')," | ## | ##| #######| #######| ######/| ## | ## | ##/ \\ ##| ######/| ##| ## ";print color('bold red')," / ~~--__ ~-',\n";
print color('bold green')," |__/ |__/ \\_______/ \\_______/ \\______/ |__/ |__/ |__/ \\__/ \\______/ |__/|__/ ";print color('bold red')," / ~~--'\n\n";
print color('bold cyan')," #---------------------------------------------------------# \n";
print color('bold cyan')," # ";print color('bold white')," By XyberWolf "; print color('bold cyan')," # \n";
print color('bold cyan')," #---------------------------------------------------------# \n\n";
}
#--------------------------------------------------------------#
# Menu #
#--------------------------------------------------------------#
sub menu {
print line_u(),color('bold cyan'),"# ";print color('reset'),item('1'),"Website Information";print color('bold cyan')," # \n";
print color('bold cyan'),"# ";print color('reset'),item('2'),"Domain Whois Lookup";print color('bold cyan')," # \n";
print color('bold cyan'),"# ";print color('reset'),item('3'),"Find IP Location";print color('bold cyan')," # \n";
print color('bold cyan'),"# ";print color('reset'),item('4'),"Active Port Scanner";print color('bold cyan')," # \n";
print color('bold cyan'),"# ";print color('reset'),item('5'),"Subdomain Scanner";print color('bold cyan')," # \n";
print color('bold cyan'),"# ";print color('reset'),item('6'),"Reverse IP Lookup";print color('bold cyan')," # \n";
print color('bold cyan'),"# ";print color('reset'),item('7'),"Technology lookup";print color('bold cyan')," # \n";
print color('bold cyan'),"# ";print color('reset'),item('8'),"Bypass CloudFlare";print color('bold cyan')," # \n";
print color('bold cyan'),"# ";print color('reset'),item('9'),"CMS Scanner";print color('bold cyan')," # \n";
print color('bold cyan'),"# ";print color('reset'),item('0'),"Exit";print color('bold cyan')," # \n",line_d();
print color('bold green'),"\n\nReconWolf: _> ";
print color('reset');
chomp($number=<STDIN>);
if($number eq '1'){
banner();
print line_u(),color('bold cyan'),"# ";print color('reset'),item(),"Enter Traget Website";print color('bold cyan')," # \n",line_d();
print color('bold green'),"\n\nReconWolf: _> ";
print color('bold white');
chomp($info=<STDIN>);
print "\n";
Websiteinformation();
enter();
}if($number eq '2'){
banner();
print line_u(),color('bold cyan'),"# ";print color('reset'),item(),"Enter Traget Website";print color('bold cyan')," # \n",line_d();
print color('bold green'),"\n\nReconWolf: _> ";
print color('bold white');
chomp($whois=<STDIN>);
print "\n";
Domainwhoislookup();
enter();
}if($number eq '3'){
banner();
print line_u(),color('bold cyan'),"# ";print color('reset'),item(),"Enter Traget Website/IP";print color('bold cyan')," # \n",line_d();
print color('bold green'),"\n\nReconWolf: _> ";
print color('bold white');
chomp($geo=<STDIN>);
print "\n";
Findiplocation();
enter();
}if($number eq '4'){
banner();
port();
enter();
}if($number eq '5'){
banner();
print line_u(),color('bold cyan'),"# ";print color('reset'),item(),"Enter Traget Website";print color('bold cyan')," # \n",line_d();
print color('bold green'),"\n\nReconWolf: _> ";
print color('bold white');
chomp($sub=<STDIN>);
print "\n";
subdomain();
enter();
}if($number eq '6'){
banner();
print line_u(),color('bold cyan'),"# ";print color('reset'),item(),"Enter Traget Website/IP";print color('bold cyan')," # \n",line_d();
print color('bold green'),"\n\nReconWolf: _> ";
print color('bold white');
chomp($rev=<STDIN>);
print "\n";
revip();
enter();
}if($number eq '7'){
banner();
print line_u(),color('bold cyan'),"# ";print color('reset'),item(),"Enter Traget Website/IP";print color('bold cyan')," # \n",line_d();
print color('bold green'),"\n\nReconWolf: _> ";
print color('bold white');
chomp($tech=<STDIN>);
print "\n";
Technology();
enter();
}if($number eq '8'){
banner();
print line_u(),color('bold cyan'),"# ";print color('reset'),item(),"Enter Traget Website";print color('bold cyan')," # \n",line_d();
print color('bold green'),"\n\nReconWolf: _> ";
print color('bold white');
chomp($cloud=<STDIN>);
print "\n";
CloudFlare();
enter();
}if($number eq '9'){
banner();
print line_u(),color('bold cyan'),"# ";print color('reset'),item(),"Enter Traget Website";print color('bold cyan')," # \n",line_d();
print color('bold green'),"\n\nReconWolf: _> ";
print color('bold white');
chomp($cms=<STDIN>);
print "\n";
cms();
enter();
}
if($number eq '0'){
exit;
}
else{
banner();
menu();
}
}
#--------------------------------------------------------------#
# Website information #
#--------------------------------------------------------------#
sub Websiteinformation {
$url = "https://myip.ms/$info";
$request = $ua->get($url);
$response = $request->content;
if($response =~/> (.*?) visitors per day </)
{
print item(),"Hosting Info for Website: $info\n";
print item(),"Visitors per day: $1 \n";
if($response =~/> (.*?) visitors per day on (.*?)</){
print item(),"Visitors per day: $1 \n";
}
$ip= (gethostbyname($info))[4];
my ($a,$b,$c,$d) = unpack('C4',$ip);
$ip_address ="$a.$b.$c.$d";
print item(),"IP Address: $ip_address\n";
if($response =~/IPv6.png'><a href='\/info\/whois6\/(.*?)'>/)
{
$ipv6_address=$1;
print item(),"Linked IPv6 Address: $ipv6_address\n";
}
if($response =~/IP Location: <\/td> <td class='vmiddle'><span class='cflag (.*?)'><\/span><a href='\/view\/countries\/(.*?)\/Internet_Usage_Statistics_(.*?).html'>(.*?)<\/a>/)
{
$Location=$1;
print item(),"IP Location: $Location\n";
}
if($response =~/IP Reverse DNS (.*?)<\/b><\/div><div class='sval'>(.*?)<\/div>/)
{
$host=$2;
print item(),"IP Reverse DNS (Host): $host\n";
}
if($response =~/Hosting Company: <\/td><td valign='middle' class='bold'> <span class='nounderline'><a title='(.*?)'/)
{
$ownerName=$1;
print item(),"Hosting Company: $ownerName\n";
}
if($response =~/Hosting Company \/ IP Owner: <\/td><td valign='middle' class='bold'> <span class='cflag (.*?)'><\/span> <a href='\/view\/web_hosting\/(.*?)'>(.*?)<\/a>/)
{
$ownerip=$3;
print item(),"Hosting Company IP Owner: $ownerip\n";
}
if($response =~/Hosting Company \/ IP Owner: <\/td><td valign='middle' class='bold'> <span class='nounderline'><a title='(.*?)'/)
{
$ownerip=$1;
print item(),"Hosting Company IP Owner: $ownerip\n";
}
if($response =~/IP Range <b>(.*?) - (.*?)<\/b><br>have <b>(.*?)<\/b>/)
{
print item(),"Hosting IP Range: $1 - $2 ($3 ip) \n";
}
if($response =~/Hosting Address: <\/td><td>(.*?)<\/td><\/tr>/)
{
$address=$1;
print item(),"Hosting Address: $address\n";
}
if($response =~/Owner Address: <\/td><td>(.*?)<\/td>/)
{
$addressowner=$1;
print item(),"Owner Address: $addressowner\n";
}
if($response =~/Hosting Country: <\/td><td><span class='cflag (.*?)'><\/span><a href='\/view\/countries\/(.*?)\/(.*?)'>(.*?)<\/a>/)
{
$HostingCountry=$1;
print item(),"Hosting Country: $HostingCountry\n";
}
if($response =~/Owner Country: <\/td><td><span class='cflag (.*?)'><\/span><a href='\/view\/countries\/(.*?)\/(.*?)'>(.*?)<\/a>/)
{
$OwnerCountry=$1;
print item(),"Owner Country: $OwnerCountry\n";
}
if($response =~/Hosting Phone: <\/td><td>(.*?)<\/td><\/tr>/)
{
$phone=$1;
print item(),"Hosting Phone: $phone\n";
}
if($response =~/Owner Phone: <\/td><td>(.*?)<\/td><\/tr>/)
{
$Ownerphone=$1;
print item(),"Owner Phone: $Ownerphone\n";
}
if($response =~/Hosting Website: <img class='cursor-help noprint left10' border='0' width='12' height='10' src='\/images\/tooltip.gif'><\/td><td><a href='\/(.*?)'>(.*?)<\/a><\/td>/)
{
$website=$1;
print item(),"Hosting Website: $website\n";
}
if($response =~/Owner Website: <img class='cursor-help noprint left10' border='0' width='12' height='10' src='\/(.*?)'><\/td><td><a href='\/(.*?)'>(.*?)<\/a>/)
{
$Ownerwebsite=$3;
print item(),"Owner Website: $Ownerwebsite\n";
}
if($response =~/CIDR:<\/td><td> (.*?)<\/td><\/tr>/)
{
$CIDR=$1;
print item(),"CIDR: $CIDR\n";
}
if($response =~/Owner CIDR: <\/td><td><span class='(.*?)'><a href="\/view\/ip_addresses\/(.*?)">(.*?)<\/a>\/(.*?)<\/span><\/td><\/tr>/)
{
print item(),"Owner CIDR: $3/$4\n\n";
}
if($response =~/Hosting CIDR: <\/td><td><span class='(.*?)'><a href="\/view\/ip_addresses\/(.*?)">(.*?)<\/a>\/(.*?)<\/span><\/td><\/tr>/)
{
print item(),"Hosting CIDR: $3/$4\n\n";
}
$url = "https://dns-api.org/NS/$info";
$request = $ua->get($url);
$response = $request->content;
}else {
print item(),"Something Went Wrong\n\n";
print item('Note'),"Enter Website Without HTTP/HTTPs\n";
}
my %seen;
while($response =~m/"value": "(.*?)."/g)
{
$ns=$1;
next if $seen{$ns}++;
print item(),"NS: $ns \n";
}
}
#--------------------------------------------------------------#
# Domain Whois Lookup #
#--------------------------------------------------------------#
sub Domainwhoislookup {
$url = "https://api.hackertarget.com/whois/?q=$whois";
$request = $ua->get($url);
$response = $request->content;
while($response =~m/(.*?)\n/g)
{
print item(),"$1 \n";
sleep(1);
}
if ($response =~ /error/) {
print item(),"Something Went Wrong\n\n";
print item('Note'),"Enter Website Without HTTP/HTTPs\n";
}
}
#--------------------------------------------------------------#
# Find IP Geo Location #
#--------------------------------------------------------------#
sub Findiplocation {
$ip= (gethostbyname($geo))[4];
my ($a,$b,$c,$d) = unpack('C4',$ip);
$ip ="$a.$b.$c.$d";
$url = "https://ipapi.co/$ip/json/";
$request = $ua->get($url);
$response = $request->content;
if($response =~/country_name": "(.*?)"/){
print item(),"IP Address: $ip\n";
print item(),"Country: $1\n";
if($response =~/city": "(.*?)"/){
print item(),"City: $1\n";
}if($response =~/region": "(.*?)"/){
print item(),"Region: $1\n";
}if($response =~/region_code": "(.*?)"/){
print item(),"Region Code: $1\n";
}if($response =~/continent_code": "(.*?)"/){
print item(),"Continent Code: $1\n";
}if($response =~/postal": "(.*?)"/){
print item(),"Postal Code: $1\n";
}if($response =~/latitude": (.*?),/){
print item(),"Latitude / Longitude: $1, ";
}if($response =~/longitude": (.*?),/){
print color("bold white"),"$1\n";
}if($response =~/timezone": "(.*?)"/){
print item(),"Timezone: $1\n";
}if($response =~/utc_offset": "(.*?)"/){
print item(),"Utc Offset: $1\n";
}if($response =~/country_calling_code": "(.*?)"/){
print item(),"Calling Code: $1\n";
}if($response =~/currency": "(.*?)"/){
print item(),"Currency: $1\n";
}if($response =~/languages": "(.*?)"/){
print item(),"Languages: $1\n";
}if($response =~/asn": "(.*?)"/){
print item(),"ASN: $1\n";
}if($response =~/org": "(.*?)"/){
print item(),"ORG: $1\n";
}
}else {
print item(),"Something Went Wrong\n\n";
print item('Note'),"Enter Website Without HTTP/HTTPs\n";
}
}
#--------------------------------------------------------------#
# Port Scanner #
#--------------------------------------------------------------#
sub port {
print line_u(),color('bold cyan'),"# ";print color('reset'),item(),"Enter Traget Website/IP";print color('bold cyan')," # \n",line_d();
print color('bold green'),"\n\nReconWolf: _> ";
print color('bold white');
chop ($op = <stdin>);
$| = 1;
print "\n";
print item(),"PORT STATE SERVICE\n";
my %ports = (
21 => 'FTP'
,22 => 'SSH'
,23 => 'Telnet'
,25 => 'SMTP'
,43 => 'Whois'
,53 => 'DNS'
,68 => 'DHCP'
,80 => 'HTTP'
,110 => 'POP3'
,115 => 'SFTP'
,119 => 'NNTP'
,123 => 'NTP'
,139 => 'NetBIOS'
,143 => 'IMAP'
,161 => 'SNMP'
,220 => 'IMAP3'
,389 => 'LDAP'
,443 => 'SSL'
,1521 => 'Oracle SQL'
,2049 => 'NFS'
,3306 => 'mySQL'
,5800 => 'VNC'
,8080 => 'HTTP'
);
foreach my $p ( sort {$a<=>$b} keys( %ports ) )
{
$socket = IO::Socket::INET->new(PeerAddr => $op , PeerPort => "$p" , Proto => 'tcp' , Timeout => 1);
if( $socket ){
print item(); printf("%4s Open %s\n", $p, $ports{$p});
}else{
print item(); printf("%4s Closed %s\n", $p, $ports{$p});
}
}
}
#--------------------------------------------------------------#
# Subdomain Scanner #
#--------------------------------------------------------------#
sub subdomain {
$url = "https://www.pagesinventory.com/search/?s=$sub";
$request = $ua->get($url);
$response = $request->content;
$ip= (gethostbyname($sub))[4];
my ($a,$b,$c,$d) = unpack('C4',$ip);
$ip_address ="$a.$b.$c.$d";
if($response =~ /Search result for/){
print item(),"Website: $sub\n";
print item('+'),"IP: $ip_address\n\n";
while($response =~ m/<td><a href=\"\/domain\/(.*?).html\">(.*?)<a href="\/ip\/(.*?).html">/g ) {
print item(),"Subdomain: $1\n";
print item('+'),"IP: $3\n\n";
sleep(1);
}
}elsif($ip_address =~ /[0-9]/){
if($response =~ /Nothing was found/){
print item(),"Website: $sub\n";
print item(),"IP: $ip_address\n\n";
print item(),"No Subdomains Found For This Domain\n";
}}
else {
print item(),"Something Went Wrong\n\n";
print item('Note'),"Enter Website Without HTTP/HTTPs\n";
}
}
#--------------------------------------------------------------#
# Reverse IP Scanner #
#--------------------------------------------------------------#
sub revip{
$url = "https://api.hackertarget.com/reverseiplookup/?q=$rev";
$request = $ua->get($url);
$response = $request->content;
while($response =~m/(.*?)\n/g)
{
print item(),"$1 \n";
print color('reset');
sleep(1);
}
if ($response =~ /error/){
print item(),"Something Went Wrong\n\n";
print item('Note'),"Enter Website Without HTTP/HTTPs\n";
}
}
#--------------------------------------------------------------#
# Technology lookup #
#--------------------------------------------------------------#
sub Technology {
$url = "https://api.wappalyzer.com/lookup-basic/beta/?url=http://$tech";
$request = $ua->get($url);
$response = $request->content;
my $responseObject = decode_json($response);
while($response =~m/"name":"(.*?)"/g)
{
print item(),"$1 \n";
}
if ($response =~ /"message"/){
print item(),"Something Went Wrong\n\n";
print item('Note'),"Enter Website Without HTTP/HTTPs\n";
}
}
#--------------------------------------------------------------#
# Bypass CloudFlare #
#--------------------------------------------------------------#
sub CloudFlare {
my $ua = LWP::UserAgent->new;
$ua = LWP::UserAgent->new(keep_alive => 1);
$ua->agent("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.63 Safari/537.31");
$ip= (gethostbyname($cloud))[4];
my ($a,$b,$c,$d) = unpack('C4',$ip);
$ip_address ="$a.$b.$c.$d";
if($ip_address =~ /[0-9]/){
print item(),"CloudFlare IP: $ip_address\n\n";
}
$url = "https://dns-api.org/NS/$cloud";
$request = $ua->get($url);
$response = $request->content;
my %seen;
while($response =~m/"value": "(.*?)."/g)
{
$ns=$1;
next if $seen{$ns}++;
print item(),"NS: $ns \n";
}
print color("bold white"),"\n";
$url = "http://www.crimeflare.org:82/cgi-bin/cfsearch.cgi";
$request = POST $url, [cfS => $cloud];
$response = $ua->request($request);
$riahi = $response->content;
if($riahi =~m/">(.*?)<\/a> /g){
print item(),"Real IP: $1\n";
$ip=$1;
}elsif($riahi =~m/not CloudFlare-user nameservers/g){
print item(),"These Are Not CloudFlare-user Nameservers !!\n";
print item(),"This Website Not Using CloudFlare Protection\n";
}elsif($riahi =~m/No direct-connect IP address was found for this domain/g){
print item(),"No Direct Connect IP Address Was Found For This Domain\n";
}else{
print item(),"Something Went Wrong\n\n";
print item('Note'),"Enter Website Without HTTP/HTTPs\n";
}
$url = "http://ipinfo.io/$ip/json";
$request = $ua->get($url);
$response = $request->content;
if($response =~m/hostname": "(.*?)"/g){
print item(),"Hostname: $1\n";
}if($response =~m/city": "(.*?)"/g){
print item(),"City: $1\n";
}if($response =~m/region": "(.*?)"/g){
print item(),"Region: $1\n";
}if($response =~m/country": "(.*?)"/g){
print item(),"Country: $1\n";
}if($response =~m/loc": "(.*?)"/g){
print item(),"Location: $1\n";
}if($response =~m/org": "(.*?)"/g){
print item(),"Organization: $1\n";
}
}
#--------------------------------------------------------------#
# CMS Scanner #
#--------------------------------------------------------------#
sub cms {
$apicms = "1461fc047b84c0cfee4504b5d7284d84c22c35d6ae8e1d104f14fad59090d608eeab06";
$url = "https://whatcms.org/APIEndpoint?key=$apicms&url=$cms";
$request = $ua->get($url);
$response = $request->content;
my $responseObject = decode_json($response);
if($response =~/Success/){
print item(),"WebSite : $cms \n";
if (exists $responseObject->{'result'}->{'name'}){
print item(),'CMS: ',
$responseObject->{'result'}->{'name'},"\n";}
if (exists $responseObject->{'result'}->{'version'}){
print item(),'Version: ',
$responseObject->{'result'}->{'version'},"\n";}
}elsif($response =~/CMS Not Found/){
print item(),"WebSite : $cms \n";
print item(),"CMS :";
print color("bold red")," Not Found\n";
print color('reset');
}else{
print item(),"Something Went Wrong\n\n";
print item('Note'),"Enter Website Without HTTP/HTTPs\n";
}
}
#--------------------------------------------------------------#
# Enter #
#--------------------------------------------------------------#
sub enter {
print "\n";
print item(),"Press ";
print color('bold red'),"[";
print color("bold white"),"ENTER";
print color('bold red'),"] ";
print color("bold white"),"To Continue\n";
local( $| ) = ( 1 );
my $resp = <STDIN>;
banner();
menu();
}
#--------------------------------------------------------------#
# Format #
#--------------------------------------------------------------#
sub item
{
my $n = shift // '!';
return color('bold red')," ["
, color('bold green'),"$n"
, color('bold red'),"] "
, color("bold white")
;
}
sub line_u
{
return
color('bold cyan'),"#---------------------------------------------------------------------------------------# \n",
"# # \n";
}
sub line_d
{
return
color('bold cyan'),"# # \n",
"#---------------------------------------------------------------------------------------# \n";
}
#--------------------------------------------------------------#
# ~~The End~~ #
#--------------------------------------------------------------#