auto
  "   ˆl–Ðz¾”Jj"TÒ�zàœ¸”Å£Ãƒ/ƒÁÀ 	V    #!/usr/local/cpanel/3rdparty/bin/perl

package scripts::whmlogin;

# cpanel - scripts/whmlogin                    Copyright 2022 cPanel L.L.C.
#                                                           All rights reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

use strict;
use warnings;

use Cpanel::SafeRun::Object ();
use Cpanel::JSON            ();

exit( __PACKAGE__->run(@ARGV) ) unless caller();

sub run {
    my ( $self, @args ) = @_;

    unless ( $> == 0 || $< == 0 ) {
        print "You must run this program as the root user.\n";
        return 1;
    }

    my $nowait;
    if (@args) {
        my $help = grep( m/help/, @args ) ? 1 : 0;
        my $msg  = <<EOS;
Usage: $0 [--nowait]
Generate a single use auto-login url for WHM

Options:
   --nowait     Do not wait for /var/cpanel/cpinit-ip.wait to be removed,
                instead exit with return status 2 if waiting would have
                occurred.

EOS
        if ($help) {
            print STDOUT $msg;
            return 0;
        }
        if ( grep m/nowait/, @args ) {
            $nowait = 1;
        }
        else {
            print STDERR "Invalid arguments: @args\n\n$msg";
            return 1;
        }
    }

    my $elapsed_wait = 0;
    my $wait_file    = '/var/cpanel/cpinit-ip.wait';
    if ( -e $wait_file ) {
        if ($nowait) {
            return 2;
        }
        print STDERR "Please wait for initial setup to complete.";
        while ( -e $wait_file ) {
            sleep 1;
            ++$elapsed_wait;
            print STDERR ".";
            if ( $elapsed_wait > 300 ) {
                print STDERR "\nGiving up on waiting.\n";
                unlink $wait_file or print STDERR "Could not remove $wait_file: $!";
                last;
            }
        }
        print STDERR "\n\n";
    }

    my $run = Cpanel::SafeRun::Object->new_or_die(
        'program' => '/usr/local/cpanel/bin/whmapi1',
        'args'    => [ '--output=json', 'create_user_session', 'user=root', 'service=whostmgrd' ]
    );
    my $json = $run->stdout();
    my $out  = Cpanel::JSON::Load($json);
    if ( !$out->{'metadata'}{'result'} ) { die "whmapi1 create_user_session failed: $out->{'metadata'}{'reason'}" }
    print $out->{data}{url} . "\n";
    return 0;
}

      ˆ994_•I|¥‰ÓMdœv ©ƒ&íK<óo¬ÂÁ â    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
 <head>
  <title>Index of /FSS-OZR/root/usr/lib/python3.9/site-packages/pip/_internal/models</title>
 </head>
 <body>
<h1>Index of /FSS-OZR/root/usr/lib/python3.9/site-packages/pip/_internal/models</h1>
  <table>
   <tr><th valign="top">&nbsp;</th><th><a href="?C=N;O=A">Name</a></th><th><a href="?C=M;O=A">Last modified</a></th><th><a href="?C=S;O=A">Size</a></th><th><a href="?C=D;O=A">Description</a></th></tr>
   <tr><th colspan="5"><hr></th></tr>
<tr><td valign="top">&nbsp;</td><td><a href="/FSS-OZR/root/usr/lib/python3.9/site-packages/pip/_internal/">Parent Directory</a>       </td><td>&nbsp;</td><td align="right">  - </td><td>&nbsp;</td></tr>
<tr><td valign="top">&nbsp;</td><td><a href="__pycache__/">__pycache__/</a>           </td><td align="right">2026-05-28 05:27  </td><td align="right">  - </td><td>&nbsp;</td></tr>
   <tr><th colspan="5"><hr></th></tr>
</table>
</body></html>
  "   	ˆl–Ým_J*j"Tâ�jàŸ¸Ð”Å£Åƒh¹ÃÂ      	0
  "   ˆl–Ým_J*j"Tâ�jà…q§TÅ£Æƒh¹ÄÃ      disabled
  "   ˆl–Ým_J*j"Tâ�jàƒpM)‹FÿÇƒh¹ÅÄ      auto
  "   ˆl–Ým_J*j"Tâ�jàž¸ØTÅ£Èƒh¹ÆÅ      0
  1   ˆl–ßi~”êh¥8 Eq–n6ú˜´oÉ„­4÷_ŒuÐb&=Ly[Ï¿ÈÇ ?÷     ý7zXZ  i"Þ6 !   t/å£ä¿jù] `¼|±ð„èÛ8Vx’Î{gOŽïUÉ´æ‹¦Ü+=U’OÐ�®Í7Ž%?8ŒMLµæ€›sdŠ»Só‚dŸ%°/å$"ºìs“ž´ÿ½Ä=W!QC±JXÊŸ‹þ6<[(Jê»b2ìÇ¤})?É›ÇÔ½îëëü
9º›z.[ÕüOÜ¿ºâ‹ÅA†¶ãufY�–°Í)T�i¸˜t ZpÅÇø»¦Fù‡šv�ê+í�¯ØTÞ7F9ßÿq(=^¾‘4ÈÜ‚Fdâ ½ò K
×Ôà>Âª€&Cƒ°@Òô$žnó£§š·s¤"ÍG?êÌ JÔ½	§ž�S®!ŠkwðJ•ŸÃÝâàzmI‰_Øl