One Hat Cyber Team
Your IP :
216.73.216.115
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
perl-Sys-Virt
/
examples
/
View File Name :
emulator-pin.pl
#!/usr/bin/perl use Sys::Virt; my $uri = shift @ARGV; my $c = Sys::Virt->new(uri => $uri); my $d = $c->get_domain_by_name("vm1"); unless ($d->is_active()) { $d->create; } my $mask = $d->get_emulator_pin_info; @bits = split(//, unpack("b*", $mask)); print join(":", @bits), "\n"; if ($bits[0] == '1' && $bits[1] == '1') { @bits[0] = 0; my $newmask = ''; for(my $i = 0 ; $i <= $#bits ; $i++) { vec($newmask, $i, 1) = $bits[$i]; } @bits = split(//, unpack("b*", $newmask)); print join(":", @bits), "\n"; $d->pin_emulator($newmask); $newermask = $d->get_emulator_pin_info; @bits = split(//, unpack("b*", $newermask)); print join(":", @bits), "\n"; $d->pin_emulator($mask); $newermask = $d->get_emulator_pin_info; @bits = split(//, unpack("b*", $newermask)); print join(":", @bits), "\n"; }