debian/0000755000000000000000000000000011743263617007200 5ustar debian/README.Debian0000644000000000000000000000072110747542163011240 0ustar elza for Debian --------------- Some debian packages are required for some parts of elza functionality, as shown in the "Suggests:" dependency field * stunnel is required for making HTTPS requests * libnet-socks-perl is required for SOCKS proxy support Bug reports are most welcome: although upstream development has been slow in the past years, I'll try my best to fix things myself. -- Sebastien Delafond Sun, 19 Sep 2004 20:33:25 -0700 debian/changelog0000644000000000000000000000722211743261567011057 0ustar elza (1.4.3-16) unstable; urgency=low * Many thanks to Jari Aalto for *all* the changes in this upload: - remove deprecated dpatch and upgrade to packaging format "3.0 quilt" - update to Standards-Version to 3.9.3.1 and debhelper to 9 - use dh_prep in rules file. -- Sebastien Delafond Tue, 17 Apr 2012 14:34:53 +0200 elza (1.4.3-15) unstable; urgency=low * Lintian cleanups * Bumped up Standards revision * Edited typos in man page (Closes: #651753) -- Sebastien Delafond Thu, 22 Dec 2011 18:26:28 +0100 elza (1.4.3-14) unstable; urgency=low * Lintian cleanups. * Bumped up Standards revision. -- Sebastien Delafond Mon, 19 Oct 2009 16:31:37 +0200 elza (1.4.3-13) unstable; urgency=low * Lintian cleanups. -- Sebastien Delafond Tue, 06 May 2008 21:42:07 -0700 elza (1.4.3-12) unstable; urgency=low * Changed default stunnel path from /usr/sbin/stunnel to /usr/bin/stunnel (Closes: #405293). -- Sebastien Delafond Tue, 02 Jan 2007 10:07:21 -0800 elza (1.4.3-11) unstable; urgency=low * Upgraded standards version to 3.7.2. * Moved debhelper and dpatch from Build-Depends-Indep to Build-Depends. -- Sebastien Delafond Thu, 15 Jun 2006 16:19:13 -0700 elza (1.4.3-10) unstable; urgency=low * Upgraded standards version to 3.6.2.2. * Changed maintainer to . -- Sebastien Delafond Mon, 06 Feb 2006 17:06:07 -0800 elza (1.4.3-9) unstable; urgency=low * Put the manpage for elza.def in section 5. * Unbloated the .diff.gz by cleaning up the man pages nroff source. * Cleaned up debian/rules even further. -- Sebastien Delafond Sat, 22 Jan 2005 09:14:56 -0800 elza (1.4.3-8) unstable; urgency=low * Cleaned up debian/copyright. * Added the manpage for elza.def. * Cleaned up debian/rules. -- Sebastien Delafond Fri, 21 Jan 2005 14:58:12 -0800 elza (1.4.3-7) unstable; urgency=low * Moved /usr/bin/elza.pl to /usr/share/elza/elza.pl -- Sebastien Delafond Tue, 26 Oct 2004 16:18:51 -0700 elza (1.4.3-6) unstable; urgency=low * New maintainer (Closes: #228043) * Moved new and pre-existing source changes to dpatch * Patched SOCKS support in elza.pl * Patched POSTing in elza.pl * Patched stunnel support in elza.def * Added Suggests: libnet-socks-perl (Closes: #266285) * Added Suggests: stunnel -- Sebastien Delafond Sun, 19 Sep 2004 20:23:06 -0700 elza (1.4.3-5) unstable; urgency=low * QA upload. * elza.pl (SendRequestToHost): Use \r\n instead of \n in formulating HTTP query. (Closes: #191057) -- Thomas Bushnell, BSG Mon, 9 Aug 2004 00:06:21 -0700 elza (1.4.3-4) unstable; urgency=low * QA upload. * Maintainer field set to QA Group. * Standards-Version updated. -- Emanuele Rocca Sun, 20 Jun 2004 21:32:03 +0200 elza (1.4.3-3.1) unstable; urgency=low * Non-maintainer upload. * Create manpage symlink correctly. (Closes: #210558) -- Graham Wilson Mon, 13 Oct 2003 17:06:33 +0000 elza (1.4.3-3) unstable; urgency=low * Small fix in the elza.def (Closes: #141386) -- Stijn de Bekker Sun, 14 Apr 2002 21:18:00 +0200 elza (1.4.3-2) unstable; urgency=low * Added docbook-to-man to the build-depends (Closes: #134514) -- Stijn de Bekker Mon, 18 Feb 2002 22:29:39 +0100 elza (1.4.3-1) unstable; urgency=low * Initial Release (Closes: #88718). -- Stijn de Bekker Tue, 30 Jan 2001 21:34:38 +0100 debian/watch0000644000000000000000000000010211267074377010226 0ustar # elza is currenly unmaintained, so a watch file is not an option.debian/docs0000644000000000000000000000001110747542162010041 0ustar elza.txt debian/examples0000644000000000000000000000003410747542162010734 0ustar *.elz dict.txt somecode.txt debian/manpages0000644000000000000000000000002210747542163010707 0ustar elza.1 elza.def.5 debian/rules0000755000000000000000000000226111743261301010245 0ustar #!/usr/bin/make -f # Sample debian/rules that uses debhelper. # GNU copyright 1997 to 1999 by Joey Hess. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export DESTDIR=$(CURDIR)/debian/elza build: build-arch build-indep build-indep: build-stamp build-arch: build-stamp: dh_testdir /usr/bin/docbook-to-man debian/elza.sgml > elza.1 /usr/bin/docbook-to-man debian/elza.def.sgml > elza.def.5 touch build-stamp clean: dh_testdir dh_testroot rm -f elza.1 elza.def.5 rm -f build-stamp configure-stamp dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs install -m 644 elza.def $(DESTDIR)/etc # Config file install -D -m 755 elza.pl $(DESTDIR)/usr/bin/elza # Binary # Build architecture-dependent files here. binary-arch: build install # We have nothing to do here now. # Build architecture-independent files here. binary-indep: build install dh_testdir dh_testroot dh_installdocs dh_installexamples dh_installman dh_installchangelogs CHANGES.txt dh_compress dh_fixperms dh_installdeb dh_perl dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure debian/control0000644000000000000000000000113011743261301010562 0ustar Source: elza Section: interpreters Priority: optional Maintainer: Sebastien Delafond Build-Depends-Indep: docbook-to-man Build-Depends: debhelper (>= 9) Standards-Version: 3.9.3 Package: elza Architecture: all Depends: ${perl:Depends}, ${misc:Depends} Suggests: stunnel, libnet-socks-perl (>= 0.03-1) Description: Script language for automating HTTP requests Elza is a set of perl scripts which can be used as an interpreter for automating requests on web pages. It can extract dynamic URLs from a page, handle forms, cookies, HTTP authentication, redirects / refreshes, etc. debian/patches/0000755000000000000000000000000011743264527010630 5ustar debian/patches/series0000644000000000000000000000006411743264410012034 0ustar 10_elza-def.patch 20_elza-pl.patch 30_elza-pl.patch debian/patches/10_elza-def.patch0000755000000000000000000000310611743261301013626 0ustar From: Sebastien Delafond Subject: No Win32 module. Correct location for various Unix binaries. diff -urNad elza-1.4.3~/elza.def elza-1.4.3/elza.def --- elza-1.4.3~/elza.def 2007-01-02 10:05:49.000000000 -0800 +++ elza-1.4.3/elza.def 2007-01-02 10:06:30.000000000 -0800 @@ -8,11 +8,11 @@ # Uncomment the line below to show that you have reviewed elza.def -$DefaultsReviewed = 1 +$DefaultsReviewed = 1; # Uncomment the line below if running in Win32 environment -use Win32::Process; use Win32; +#use Win32::Process; use Win32; # ======================================================================== @@ -47,14 +47,14 @@ # SET FOR WIN32 (tested with stunnel on Win95) -$DEF{'sslapp'} = "c:\\win-util\\stunnel.exe"; -$DEF{'sslcmd'} = "stunnel -c -d 127.0.0.1:SSLLOCAL -r SSLHOST:SSLPORT -D 1"; -$DEF{'sslconsole'} = 1; # Set to 1 to see the console +#$DEF{'sslapp'} = "c:\\win-util\\stunnel.exe"; +#$DEF{'sslcmd'} = "stunnel -c -d 127.0.0.1:SSLLOCAL -r SSLHOST:SSLPORT -D 1"; +#$DEF{'sslconsole'} = 1; # Set to 1 to see the console # SET FOR UNIX (tested with stunnel on Debian Linux) -#$DEF{'sslapp'} = "stunnel"; # This name will be passed to KILLALL -#$DEF{'sslcmd'} = "/usr/sbin/stunnel -c -d 127.0.0.1:$DEF{'ssllocal'} -r SSLHOST:SSLPORT -D 1"; +$DEF{'sslapp'} = "stunnel"; # This name will be passed to KILLALL +$DEF{'sslcmd'} = "/usr/bin/stunnel -c -d 127.0.0.1:$VAR{'ssllocal'} -r SSLHOST:SSLPORT -D 1 -P none -o /dev/fd/2"; # ======================================================================== # STEP 3 - Proxies debian/patches/20_elza-pl.patch0000755000000000000000000000716411743261301013514 0ustar From: Sebastien Delafond Subject: Set correct interpreter and fix line-terminations diff -urNad elza-1.4.3/elza.pl /tmp/dpep.r8rSXb/elza-1.4.3/elza.pl --- elza-1.4.3/elza.pl 2005-01-21 15:09:22.000000000 -0800 +++ /tmp/dpep.r8rSXb/elza-1.4.3/elza.pl 2005-01-21 15:27:36.000000000 -0800 @@ -1,4 +1,4 @@ -#!c:\perl\bin\perl +#!/usr/bin/perl # ======================================================================== # Hello! This is the source code for the ELZA interpreter. @@ -13,7 +13,7 @@ $DEF{'version'} = '1.4.3'; # ELZA Version # Read various default values from elza.def -$DEFAULTS = 'elza.def'; +$DEFAULTS = '/etc/elza.def'; open DEFAULTS or shout ('critical', "Unable to open defaults file $DEFAULTS: $!"); foreach $Line () {eval $Line;} close DEFAULTS; @@ -1180,14 +1180,14 @@ if (($InAttack < 1) || ($VAR{'dictionary'} eq '')) { shout ('normal', ">>> Request: $RawRequest"); } - $RawRequest.= "\n"; + $RawRequest.= "\r\n"; # Add the Host: part of the request - $RawRequest.= "Host: $VAR{'host'}:$VAR{'port'}\n"; + $RawRequest.= "Host: $VAR{'host'}:$VAR{'port'}\r\n"; # Add the user agent to the request if ($VAR{'sendagent'} eq 'on') { - $RawRequest.= "User-Agent: $VAR{'agent'}\n"; + $RawRequest.= "User-Agent: $VAR{'agent'}\r\n"; } # Add various bogus headers to the request @@ -1198,7 +1198,7 @@ # Add Referer if (($DEF{'sendreferer'} ne 'no') && ($VAR{'Referer'} ne '')) { - $RawRequest.= "Referer: $VAR{'Referer'}\n"; + $RawRequest.= "Referer: $VAR{'Referer'}\r\n"; } # Add authentication @@ -1216,12 +1216,12 @@ $md5->add(join(":", @digest)); my($digest) = $md5->hexdigest; $md5->reset; - $TheHeader = "Authorization: Digest username=\"$VAR{'user'}\", realm=\"$VAR{'realm'}\", nonce=\"$VAR{'ses_nonce'}\", uri=\"$VAR{'request'}\", response=\"$digest\"\n"; + $TheHeader = "Authorization: Digest username=\"$VAR{'user'}\", realm=\"$VAR{'realm'}\", nonce=\"$VAR{'ses_nonce'}\", uri=\"$VAR{'request'}\", response=\"$digest\"\r\n"; $RawRequest.= $TheHeader; } if ($VAR{'ses_auth'} eq 'Basic') { $AuthEncoded = encode_base64($VAR{'user'}.':'.$VAR{'autopass'}); - $RawRequest.= "Authorization: Basic $AuthEncoded\n"; + $RawRequest.= "Authorization: Basic $AuthEncoded\r\n"; } } @@ -1242,27 +1242,27 @@ } } - if ($CookieLine ne '') {$RawRequest.= "Cookie: $CookieLine\n";} + if ($CookieLine ne '') {$RawRequest.= "Cookie: $CookieLine\r\n";} # Self-explanatory. I wonder if I will be able to do # persistent connections someday. if ($VAR{'keepalive'} eq 'on') { - $RawRequest.= "Connection: Keep-Alive\n"; - $RawRequest.= "Proxy-Connection: Keep-Alive\n"; + $RawRequest.= "Connection: Keep-Alive\r\n"; + $RawRequest.= "Proxy-Connection: Keep-Alive\r\n"; } else { - $RawRequest.= "Connection: close\n"; + $RawRequest.= "Connection: close\r\n"; } # Add POST data if ($VAR{'method'} eq 'POST') { # Append fields to the request. - $RawRequest.="Content-Type: application/x-www-form-urlencoded\n"; - $RawRequest.="Content-Length: ".length($CombinedFields)."\n\n"; - $RawRequest.="$CombinedFields\n"; + $RawRequest.="Content-Type: application/x-www-form-urlencoded\r\n"; + $RawRequest.="Content-Length: ".length($CombinedFields)."\r\n"; + $RawRequest.="$CombinedFields\r\n"; } # Terminate request - $RawRequest.="\n"; + $RawRequest.="\r\n"; # Perform host:port mapping, if any @@ -1325,7 +1325,7 @@ } else { if ($VAR{'debug'} eq 'on') { $DebugRequest = $RawRequest; - $DebugRequest =~ s/\n/ /g; + $DebugRequest =~ s/\r\n/ /g; shout ('debug', "SOCKET: Sending: $DebugRequest"); } } debian/patches/30_elza-pl.patch0000755000000000000000000000213311743261301013504 0ustar From: Sebastien Delafond Subject: Fix bug when POSTing a request and bug when using a SOCKS proxy diff -urNad elza-1.4.3/elza.pl /tmp/dpep.C7rYmi/elza-1.4.3/elza.pl --- elza-1.4.3/elza.pl 2005-01-21 15:28:55.000000000 -0800 +++ /tmp/dpep.C7rYmi/elza-1.4.3/elza.pl 2005-01-21 15:29:51.000000000 -0800 @@ -1258,6 +1258,7 @@ # Append fields to the request. $RawRequest.="Content-Type: application/x-www-form-urlencoded\r\n"; $RawRequest.="Content-Length: ".length($CombinedFields)."\r\n"; + $RawRequest.="\r\n"; $RawRequest.="$CombinedFields\r\n"; } @@ -1468,7 +1469,7 @@ } shout ('debug', "SOCKET: Connecting to $RawHost:$RawPort via SOCKS proxy at $VAR{'sockshost'}:$VAR{'socksport'}."); $SOCK = $tmpsock->connect(peer_addr => $RawHost, peer_port => $RawPort); - if ($tmpsock->param('status_num') != SOCKS_OKAY) { + if ($tmpsock->param('status_num') != &SOCKS_OKAY) { $DaMessage = Net::SOCKS::status_message($tmpsock->param('status_num')); shout ('critical', "SOCKET: Problem with SOCKS server $VAR{'sockshost'}:$VAR{'socksport'} - $DaMessage."); } else { debian/dirs0000644000000000000000000000005010747542162010055 0ustar etc usr/share/doc/elza/examples usr/bin debian/source/0000755000000000000000000000000011743261301010464 5ustar debian/source/format0000644000000000000000000000001411743261301011672 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000211743261301010362 0ustar 9 debian/elza.def.sgml0000644000000000000000000000563210747542162011560 0ustar Stijn"> de Bekker"> March 8, 2001"> 5"> stijn@debian.org"> ELZA.DEF"> Debian GNU/Linux"> GNU"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2001 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; elza(1) configuration file DESCRIPTION The &dhpackage; file is the default configuration file for the elza(1) utility. Configuration variables are specified either in the elza script, or in elza.def This manual page was written for the &debian; distribution because the original program does not have a manual page. AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. A copy of the license can be found under /usr/share/common-licenses/FDL. FILES /etc/elza.def Default values for various elza variables. SEE ALSO elza.def (5)
debian/elza.sgml0000644000000000000000000000741111674664310011020 0ustar Stijn"> de Bekker"> March 8, 2001"> 1"> stijn@debian.org"> ELZA"> Debian GNU/Linux"> GNU"> ]>
&dhemail;
&dhfirstname; &dhsurname; 2001 &dhusername; &dhdate;
&dhucpackage; &dhsection; &dhpackage; script language for automating HTTP requests &dhpackage; scriptfile DESCRIPTION The &dhpackage; is a scripting language aimed at automating requests on web pages. Scripts written in &dhpackage; are capable of mimicking browser behavior almost perfectly, making it extremely difficult for remote servers to distinguish their activity from the activity generated by ordinary users and browsers. This gives those scripts the opportunity to act upon servers that will not respond to requests generated using netcat, gammaprog, rebol, or similar tool. This manual page was written for the &debian; distribution because the original program does not have a manual page. OPTIONS The name and location of your script to be executed by elza. Variables are specified either in the .elz script, or in elza.def AUTHOR This manual page was written by &dhusername; &dhemail; for the &debian; system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. A copy of the license can be found under /usr/share/common-licenses/FDL. FILES /etc/elza.def Default values for various elza variables.
debian/copyright0000644000000000000000000000043110747542163011130 0ustar This package was debianized by Stijn de Bekker on Tue, 30 Jan 2001 21:34:38 +0100. It was downloaded from http://phiphi.hypermart.net/pub/ Upstream author: Philip Stoev Copyright: The ELZA interpreter is placed in the public domain.