Mudar Ícone de Invocador

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
I define the reality of my own existence
Onaylı Üye
Katılım
3 Ağu 2020
Mesajlar
65
Tepki puanı
14
Ödüller
5
Yaş
27
5 HİZMET YILI
Bom dia/tarde/noite, estou trazendo esse tutorial simples aqui pra trocar vossos ícones de invocador.
Já deixo avisado, o tutorial não é meu, estou apenas traduzindo, credits to @jesterria
Tópico Original

Tutorial em vídeo
Perl:
use strict;
use warnings;
use MIME::Base64;
use LWP::UserAgent;

pid('{"profileIconId": 29}');

sub pid {
 
    my ($a,$p) = @{auth()};
 
    my $u = LWP::UserAgent->new(
        ssl_opts => { verify_hostname => 0 },
        protocols_allowed => ['https']
    );

    my $r = HTTP::Request->new('PUT', "https://127.0.0.1:$p/lol-summoner/v1/current-summoner/icon" );
 
    $r->header('Accept' => 'application/json');
    $r->header('Content-Type' => 'application/json');
    $r->header('Authorization' => "Basic $a");
 
    $r->content($_[0]);
 
    my %data = map { (split/:/)[0] => (split/:/)[1] } split/,/,
        $u->request($r)->content =~ s/(?:[{"}\n]|\s{2,})//gr;
 
    print map { sprintf("%30s\t%-15s\n",$_,$data{$_}) }
keys %data
 
}

sub auth {
    my $proc = `WMIC path win32_process get Caption,Commandline | find "--remoting-auth-token="`;
    if ($proc =~ /--remoting-auth-token=(\S+)".*?--app-port=(\d+)/) {
        return [ encode_base64(qq(\x72\x69\x6f\x74:$1)), $2 ]
    }
}

Baixe e instale o
Bağlantıları görmek için lütfen Giriş Yap

Como usar
  • Copie e cole esse código dentro de um bloco de notas
  • Salve com o nome que desejar com a extensão .pl
  • Execute o arquivo com o StrawBerry Perl
Bağlantıları görmek için lütfen Giriş Yap


Deixa aquele like humilde pra um futuro Confirmed Member :thugbear:
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst