⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
usermin
/
twofactor
/
Edit File: twofactor.pl
#!/usr/bin/perl # Validate the OTP for some Usermin user $main::no_acl_check = 1; $main::no_referers_check = 1; $ENV{'WEBMIN_CONFIG'} = "/etc/usermin"; $ENV{'WEBMIN_VAR'} = "/var/usermin"; if ($0 =~ /^(.*\/)[^\/]+$/) { chdir($1); } require './twofactor-lib.pl'; $module_name eq 'twofactor' || die "Command must be run with full path"; # Check command-line args @ARGV == 5 || die "Usage: $0 user provider id token api-key"; ($user, $provider, $id, $token, $apikey) = @ARGV; # Call the provider validation function $func = "validate_twofactor_".$provider; $err = &$func($id, $token, $apikey); if ($err) { $err =~ s/\r|\n/ /g; print $err,"\n"; exit(1); } else { exit(0); }
Simpan