summaryrefslogtreecommitdiff
path: root/cacertupload.pl
diff options
context:
space:
mode:
authorBernhard Fröhlich <bernhard@cacert.org>2011-03-23 00:10:23 +0100
committerBernhard Fröhlich <bernhard@cacert.org>2011-03-23 00:10:23 +0100
commitab852c57094f527af4db032a534c7cc492b260ee (patch)
tree235644b2d6d8a66c3692e5e7aa0515bc79cf26e7 /cacertupload.pl
parent95bd3c1cc714cce497609b10a9ff0120e59d83b5 (diff)
downloadcacert-devel-ab852c57094f527af4db032a534c7cc492b260ee.tar.gz
cacert-devel-ab852c57094f527af4db032a534c7cc492b260ee.tar.xz
cacert-devel-ab852c57094f527af4db032a534c7cc492b260ee.zip
Split off account/password in extra file
Diffstat (limited to 'cacertupload.pl')
-rwxr-xr-x[-rw-r--r--]cacertupload.pl10
1 files changed, 8 insertions, 2 deletions
diff --git a/cacertupload.pl b/cacertupload.pl
index 4c883c8..991570b 100644..100755
--- a/cacertupload.pl
+++ b/cacertupload.pl
@@ -20,6 +20,12 @@ use LWP::UserAgent;
$ua = LWP::UserAgent->new(agent => 'Translingo Client 1.0');
use HTTP::Request::Common qw(POST);
+my $translingo_password;
+my $translingo_account;
+
+# Read Account&Password from file
+eval `cat password.dat`;
+
$ua->cookie_jar({});
$ua->timeout(10000);
@@ -33,8 +39,8 @@ $req->referer('http://translingo.cacert.org/');
# 1.Test - Umgebung
my $req = POST 'http://translingo.cacert.org/login.php',
[
- username => 'support@cacert.org',
- password => 'ilccSSAMNIemU',
+ username => $translingo_account,
+ password => $translingo_password,
submit => 'Login',
];
# ggf. Referer faken