mirror of
https://git.sdf.org/deCloudflare/deCloudflare/
synced 2025-02-22 16:42:35 +00:00
Update 'tool/irssi_cf_alturl.pl'
This commit is contained in:
parent
79698629b8
commit
3ba0dc0692
@ -230,9 +230,7 @@ sub GotUrl {
|
|||||||
'https://searxes.eu.org/collab/open/ismitm.php?f='
|
'https://searxes.eu.org/collab/open/ismitm.php?f='
|
||||||
. $fqdn;
|
. $fqdn;
|
||||||
$browser = LWP::UserAgent->new;
|
$browser = LWP::UserAgent->new;
|
||||||
$browser->agent(
|
$browser->agent("Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0");
|
||||||
"Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"
|
|
||||||
);
|
|
||||||
$response = $browser->get($url);
|
$response = $browser->get($url);
|
||||||
$answer = $response->content;
|
$answer = $response->content;
|
||||||
if ( $answer eq '[true,true]' ) {
|
if ( $answer eq '[true,true]' ) {
|
||||||
@ -250,7 +248,7 @@ sub GotUrl {
|
|||||||
deb("$target Creating Short Onion for $myurl");
|
deb("$target Creating Short Onion for $myurl");
|
||||||
$url = 'https://url.danwin1210.me/?i=new&url=' . $myurl;
|
$url = 'https://url.danwin1210.me/?i=new&url=' . $myurl;
|
||||||
$browser = LWP::UserAgent->new;
|
$browser = LWP::UserAgent->new;
|
||||||
$browser->agent("cloudflare-tor");
|
$browser->agent("Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0");
|
||||||
$response = $browser->get($url);
|
$response = $browser->get($url);
|
||||||
$answer = $response->content;
|
$answer = $response->content;
|
||||||
if (
|
if (
|
||||||
@ -272,8 +270,7 @@ sub GotUrl {
|
|||||||
$url =
|
$url =
|
||||||
'https://ux.nu/api/short?format=plain&url=' . $myurl;
|
'https://ux.nu/api/short?format=plain&url=' . $myurl;
|
||||||
$browser = LWP::UserAgent->new;
|
$browser = LWP::UserAgent->new;
|
||||||
$browser->agent(
|
$browser->agent("Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0");
|
||||||
"cloudflare-tor (Thank you for your service)");
|
|
||||||
$response = $browser->get($url);
|
$response = $browser->get($url);
|
||||||
$answer = $response->content;
|
$answer = $response->content;
|
||||||
if ( index( $answer, 'https://ux.nu/' ) == 0 ) {
|
if ( index( $answer, 'https://ux.nu/' ) == 0 ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user