-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reworked QUERY_STRING management to further fix some potential security
flaws.
- Loading branch information
Showing
12 changed files
with
71 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.7.4 | ||
1.7.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta content="10;URL=/addons/email/logfile.html" http-equiv="Refresh"> | ||
<meta http-equiv="expires" content="0"> | ||
<title>Logfile</title> | ||
<link rel="stylesheet" type="text/css" href="style.css" /> | ||
<script LANGUAGE="JavaScript"> | ||
<!-- | ||
function reload_main(){ | ||
var uri=location.href; | ||
location.href=uri; | ||
} | ||
//--> | ||
</script> | ||
</head> | ||
<body> | ||
<iframe name='logdisplay' src='/addons/email/log/email.log' width='100%' height='80' scrolling='yes' frameborder='0' style='background-color:transparent;border:0px solid #11cccc;padding:0px;'></iframe></td></tr> | ||
</body> | ||
</html> | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta content="10;URL=/addons/email/logfile.html" http-equiv="Refresh"> | ||
<meta http-equiv="expires" content="0"> | ||
<title>Logfile</title> | ||
<link rel="stylesheet" type="text/css" href="style.css" /> | ||
<script LANGUAGE="JavaScript"> | ||
<!-- | ||
function reload_main(){ | ||
var uri=location.href; | ||
location.href=uri; | ||
} | ||
//--> | ||
</script> | ||
</head> | ||
<body> | ||
<iframe name='logdisplay' src='/addons/email/log/email.log' width='100%' height='80' scrolling='yes' frameborder='0' style='background-color:transparent;border:0px solid #11cccc;padding:0px;'></iframe></td></tr> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta content="10;URL=/addons/email/messages.html" http-equiv="Refresh"> | ||
<meta http-equiv="expires" content="0"> | ||
<title>Logfile</title> | ||
<script LANGUAGE="JavaScript"> | ||
<!-- | ||
function reload_main(){ | ||
var uri=location.href; | ||
location.href=uri; | ||
} | ||
//--> | ||
</script> | ||
</head> | ||
<body> | ||
<iframe name='logdisplay1' src='/addons/email/syslog.cgi?filter=msmtp' width='100%' height='80' scrolling='yes' frameborder='0' style='background-color:transparent;border:0px solid #11cccc;padding:0px;'></iframe></td></tr> | ||
</body> | ||
</html> | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta content="10;URL=/addons/email/messages.html" http-equiv="Refresh"> | ||
<meta http-equiv="expires" content="0"> | ||
<title>Logfile</title> | ||
<script LANGUAGE="JavaScript"> | ||
<!-- | ||
function reload_main(){ | ||
var uri=location.href; | ||
location.href=uri; | ||
} | ||
//--> | ||
</script> | ||
</head> | ||
<body> | ||
<iframe name='logdisplay1' src='/addons/email/syslog.cgi' width='100%' height='80' scrolling='yes' frameborder='0' style='background-color:transparent;border:0px solid #11cccc;padding:0px;'></iframe></td></tr> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,18 @@ | ||
#!/bin/tclsh | ||
|
||
set logfile "/var/log/messages" | ||
set filter * | ||
|
||
catch { | ||
set input $env(QUERY_STRING) | ||
set pairs [split $input &] | ||
foreach pair $pairs { | ||
if {0 != [regexp "^(\[^=]*)=(.*)$" $pair dummy varname val]} { | ||
set $varname $val | ||
} | ||
} | ||
} | ||
|
||
puts "Content-Type: text/plain;Charset=ISO-8859-1" | ||
puts "" | ||
|
||
if {[catch {open "$logfile" r} fd]} { | ||
puts "ERROR open($logfile) $fd" | ||
} else { | ||
while {[gets $fd line] >= 0} { | ||
if {[string match -nocase "*$filter*" $line]} { | ||
puts $line | ||
} | ||
} | ||
close $fd | ||
} | ||
#!/bin/tclsh | ||
|
||
set logfile "/var/log/messages" | ||
set filter "msmtp" | ||
|
||
puts "Content-Type: text/plain; charset=iso-8859-1" | ||
puts "" | ||
|
||
if {[catch {open "$logfile" r} fd]} { | ||
puts "ERROR open($logfile) $fd" | ||
} else { | ||
while {[gets $fd line] >= 0} { | ||
if {[string match -nocase "*$filter*" $line]} { | ||
puts $line | ||
} | ||
} | ||
close $fd | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters