Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
doc /
libfile-nfslock-perl /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
lock_test
950
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : lock_test
#!/usr/bin/perl -w ### Written by Rob Brown ### This script is designed to be ran on multiple boxes ### by multiple processes with a high increment number. ### The processes should all compete, but a successful ### test occurs if all of the specified inc's add up to ### the final number in the specified file. use strict; use File::NFSLock (); use Fcntl qw(O_RDWR O_CREAT LOCK_EX); my $datafile = shift; my $inc = shift || do { print "Usage: $0 <filename> <increment>\n"; exit; }; while ( $inc -- > 0 ) { my $lock = new File::NFSLock ($datafile, LOCK_EX) or print "Ouch1\n"; # blocking lock (Exclusive) sysopen(FH, $datafile, O_RDWR | O_CREAT) or die "Cannot open [$datafile][$!]"; ### read the count and spit it out my $count = <FH>; $count ++; print "[$$] I win with [$count] \r"; seek (FH,0,0); print FH "$count\n"; close FH; # $lock leaves scope and unlocks automagically } print "\n\n";
Close