Skip to content

Commit beb92da

Browse files
committed
first commit
0 parents  commit beb92da

File tree

9 files changed

+2172
-0
lines changed

9 files changed

+2172
-0
lines changed

Diff for: AUTHORS

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Monte Ohrt <[email protected]>
2+
- main Snoopy work
3+
4+
Andrei Zmievski <[email protected]>
5+
- miscellaneous fixes
6+
- read timeout support
7+
- file submission capability
8+
9+
Gene Wood <[email protected]>
10+
- bug fixes
11+
- security fixes

Diff for: COPYING.lib

+458
Large diffs are not rendered by default.

Diff for: ChangeLog

+105
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
Version 1.2.4
2+
-------------
3+
4+
- fix command line escapement vulnerability with execution of curl binary on https fetches (mohrt)
5+
6+
Version 1.2.3
7+
-----------
8+
- updated the version variable in the code to reflect the new version number
9+
- fixed a typo that I introduced in 1.2.2 (the first character of the file is a "z" (gene_wood, Marc Desrousseaux, Jan Pedersen)
10+
- fixed BUG # 1328793 : fetch is case sensetive when it comes to the scheme (http / https) (gene_wood)
11+
12+
Version 1.2.2
13+
-----------
14+
- incorporated PATCH # 985470 : pass port information in http 1.1 Host header ( http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.23 ) (gene_wood)
15+
- fixed BUG # 1110049 : redirect is case sensitive
16+
- fixed bug in security bugfix from 1.2.1 (gene_wood, kellan, zaruba)
17+
18+
Version 1.2.1
19+
-----------
20+
- fixed potential security issue with unchecked variables being passed to exec (for https with curl) (gene_wood)
21+
- fixed BUG # 1086830 : submitlinks,fetchlinks and submittext expandlinks with the URI of the original page not the refreshed page (gene_wood)
22+
- fixed BUG # 1077870 : Snoopy can't deal with multiple spaces in a refresh tag (gene_wood)
23+
- fixed BUG # 864047 : Root relative links are treated as relative (gene_wood)
24+
- fixed BUG # 1097134 : Undefined URI_PARTS["path"] generates Notice (gene_wood)
25+
26+
Version 1.2
27+
-----------
28+
- fixed BUG # 1014823 : Meta redirect regex inaccurate (gene_wood)
29+
- fixed BUG # 999079 : Trailing slashes not removed in uri passed to fetchlinks (gene_wood)
30+
- fixed BUG # 642958 and 912060 : $URI_PARTS["query"] causing undefined variable notices (gene_wood)
31+
- fixed BUG # 626849 : cURL security risk (Tajh Leitso, gene_wood)
32+
- fixed BUG # 626849 : Corrects the redirect function under the submit functions (Tajh Leitso, gene_wood)
33+
- fixed BUG # 912060 : Undefined variable: postdata (gene_wood)
34+
- fixed BUG # 858526 : win32 tmp/$headerfile create error (gene_wood)
35+
- fixed BUG # 929682 : Called undefined function is_executable() on line 194. (gene_wood)
36+
- fixed BUG # 859711 : typo: http://snoopy.sourceforge.com (gene_wood)
37+
- fixed BUG # 852993 : double urlencoding breaks redirect (gene_wood)
38+
- added proxy user/pass support (Robert Zwink, Monte)
39+
- fixed post data array problem (stefan, Monte)
40+
41+
Version 1.01
42+
-----------
43+
- fixed problem with PHP 4.3.2 and fread() (Monte)
44+
45+
Version 1.0
46+
-----------
47+
- added textarea to stripform functionality (Monte)
48+
- fixed multiple cookie setting problem (Monte)
49+
- fixed problem where extra text inside <frame src (Monte)
50+
- fixed problem where extra text inside <a href (Monte)
51+
- removed http request header from curl fetched
52+
documents, not needed (Monte)
53+
- added carriage return to newlines on headers (Monte)
54+
- fixed bug with curl, removed single quotes
55+
- fixed bug with curl and "&" in the URL
56+
- added ability to post files. (Andrei)
57+
58+
Version 0.94
59+
------------
60+
- Added fetchform() function
61+
- Fixed misc issues with frames
62+
- Added SSL support via cURL
63+
- fixed bug with posting arrays of data
64+
- added status variable for http status
65+
66+
Version 0.93
67+
------------
68+
- fixed bug with hostname match in a redirect location header
69+
- added $lastredirectaddr variable
70+
71+
Version 0.92
72+
------------
73+
- fixed redirect bug with MS web server
74+
- added ability to pass set cookies through redirects
75+
- added ability to traverse html frames
76+
77+
Version 0.91
78+
------------
79+
- fixed bug with return headers being overwritten.
80+
Please read the NEWS file for important notes. (Monte)
81+
82+
Version 0.9
83+
-----------
84+
- added support for read timeouts (Andrei)
85+
- standardized distribution (Andrei)
86+
87+
Version 0.1e
88+
------------
89+
- fixed bug in fetchlinks logic (Monte)
90+
91+
Version 0.1d
92+
------------
93+
- fixed redirect bug without fully qualified url (Monte)
94+
95+
Version 0.1c
96+
------------
97+
- fixed bug on submitting formvars after a redirect (Monte)
98+
99+
Version 0.1b
100+
------------
101+
- fixed bug to allow empty post vars on a submit (Monte)
102+
103+
Version 0.1
104+
------------
105+
- initial release (Monte)

Diff for: FAQ

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Q: Why can't I fetch https pages?
2+
A: Using Snoopy to fetch an https page requires curl. Check if curl is installed on your host. If curl is installed, it may be located in a different place than the default. By default Snoopy looks for curl in /usr/local/bin/curl. Run 'which curl' and find out your location. If it differs from the default, then you'll need to set the $snoopy->curl_path variable to the location of your curl installation. Here's an example of the code :
3+
include "Snoopy.class.php";
4+
$snoopy = new Snoopy;
5+
$snoopy->curl_path="/usr/bin/curl";
6+
7+
Q: where does the function preg_match_all come from?
8+
A: PCRE functions in PHP 3.0.9 and later
9+
10+
Q: I get the error: Warning: Wrong parameter count for fsockopen()
11+
A: Upgrade your verion of PHP to 3.0.9 or later
12+
13+
Q: Snoopy cuts of my results every time. What's wrong?
14+
A: Upgrade your verion of PHP to 3.0.9 or later

Diff for: INSTALL

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Put Snoopy.class.php into one of the directories specified in your
2+
php.ini include_path directive.

Diff for: NEWS

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
RELEASE NOTE: v1.2.4
2+
October 22, 2008
3+
4+
https fetches were not properly escaping shell args for curl binary execution. This is fixed.
5+
6+
RELEASE NOTE: v1.2.3
7+
November 7, 2005
8+
9+
A typo was introduced in 1.2.2 which broke the whole release. This has been fixed.
10+
A couple small fixes have been implemented also.
11+
12+
RELEASE NOTE: v1.2.2
13+
October 30, 2005
14+
15+
Fixed a bug with the bugfix for the security hole.
16+
17+
RELEASE NOTE: v1.2.1
18+
October 24, 2005
19+
20+
Fixed a few outstanding bugs and a potential security hole.
21+
22+
RELEASE NOTE: v1.2
23+
November 17, 2004
24+
25+
Fixed a number of outstanding bugs.
26+
27+
RELEASE NOTE: v1.01
28+
29+
PHP fixed a bug with fread() which consequently broke the way Snoopy called it. This has been fixed.
30+
Renamed Snoopy.class.inc to Snoopy.class.php for proper file extention.
31+
32+
RELEASE NOTE: v1.0
33+
34+
Added fetchform() function for fetching form elements from an html page.
35+
For SSL support, you must have cURL installed. see http://curl.haxx.se
36+
for details. Snoopy does not use the cURL library fuctions within PHP,
37+
as these are not stable as of this Snoopy release.
38+
Fixed bug with posting arrays of data.
39+
Added status variable to track http status.
40+
Several other bug fixes, see Changelog.
41+
RELEASE NOTE: v0.93
42+
43+
A bug was fixed with redirection headers not containing the hostname, doubling up the redirection location URL.
44+
45+
There is also a new variable, $lastredirectaddr that contains the last redirection URL.
46+
47+
RELEASE NOTE: v0.92
48+
March 9, 2000
49+
50+
A bug was fixed with redirection on MS web servers. Also, cookies are now passed through redirects.
51+
52+
This release also adds the ability to traverse html framed pages. Just set $maxframes to the recursion depth you want to allow, and results are returned in $this->results as an array. See the README for an example.
53+
54+
-Monte
55+
56+
RELEASE NOTE: v0.91
57+
February 22, 2000
58+
59+
In previous versions of Snoopy, $this->header was an array containing key/value pairs of headers returned from fetched content, not including HTTP and GET headers. If a key value was the same, the old value was overwritten (Two Set-Cookie: headers for example). This was overcome by making $this->header a simple array containing every header returned. Therefore, it will now be up to the programmer to split these headers into key/value pairs if so desired.
60+
61+
-Monte

0 commit comments

Comments
 (0)