mirror of
https://codeberg.org/crimeflare/cloudflare-tor
synced 2024-12-24 00:20:41 +00:00
Update 'tool/irssi_cf_alturl.pl'
This commit is contained in:
parent
c17a85697b
commit
195a4ac211
@ -84,12 +84,15 @@ sub mitmtest {
|
||||
my ( $server, $chan, $longurl ) = @_;
|
||||
my ($fqdn) = $longurl =~ m!(https?://[^:/]+)!;
|
||||
my ( $junk, $fqdn ) = split( /\/\//, $fqdn, 2 );
|
||||
my $scanned_url;
|
||||
## FQDN is ok
|
||||
if (length($fqdn) >= 4) {
|
||||
my $url = 'https://searxes.danwin1210.me/collab/open/ismitm.php?f=' . $fqdn;
|
||||
deb("getting url:($url)");
|
||||
my $browser = LWP::UserAgent->new;
|
||||
$browser->agent("cloudflare cflare_alt.pl");
|
||||
my $response = $browser->get($url);
|
||||
my $scanned_url = $response->content;
|
||||
$scanned_url = $response->content;
|
||||
}
|
||||
## if the array[1] is true => it is MITM
|
||||
if ( $scanned_url == '[true,true]' ) {
|
||||
$scanned_url = 'https://web.archive.org/web/' . $longurl;
|
||||
|
Loading…
Reference in New Issue
Block a user