<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/3052" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2002-11-20T06:05:40-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/3052</id>

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-20T06:05:40-04:00</updated>

		<published>2002-11-20T06:05:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13401#p13401</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13401#p13401"/>
		<title type="html"><![CDATA[HTTP issue]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13401#p13401"><![CDATA[
After some pratting about, including work on my firewall and the fact my router fails to re-direct traffic aimed at my public IP back into my network from a lan machine (this may also be a ISP issue), I finaly managed to get some output from your script.<br><br>However, I am gonna have to do some major work, including making it send fake headers back to the browser.<br><br>Output from the my script, showed that the header was sent, including the BASE64 encoded user:pass (I made a small PHP script in the end, just to send me it, it tunred out that I was using the correct encoding).<br><br>However, connecting MSIE to the script, refused to send the authenticate header.<br><br>I did notice that MSIE sent some changes like MIME types, which I changed in my script, it also sent the port (:3141) atteched to the host header. I changed http.tcl again, to send the port based on it's presense.<br><br>My guess was it required two connections, one seeking auth, the second making the auth. This also failed.<br><br>I am ready to bail, with the exception of sending a message to Zyxel regarding there non HTTP complient router.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Nov 20, 2002 6:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-11-19T20:45:52-04:00</updated>

		<published>2002-11-19T20:45:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13386#p13386</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13386#p13386"/>
		<title type="html"><![CDATA[HTTP issue]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13386#p13386"><![CDATA[
1.0 supports basic auth too, no need to change it.<br><br>If you do want to change it, make sure you're sending the "Host: blah.com" header as well. A lot of servers require it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Nov 19, 2002 8:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-19T15:55:33-04:00</updated>

		<published>2002-11-19T15:55:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13384#p13384</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13384#p13384"/>
		<title type="html"><![CDATA[HTTP issue]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13384#p13384"><![CDATA[
First things first - No I aint sure if the BASE64 is correct.<br><br>I used a basic converter on a web-page, as I was unable to find any other way to make the conversion.<br><br>My guess at this stage, may be the differance between protocol 1.0 and 1.1. A simple change of the package to send 1.1, didn't fix things.<br><br>Though more testing will be done later.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Nov 19, 2002 3:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-11-19T15:30:44-04:00</updated>

		<published>2002-11-19T15:30:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13383#p13383</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13383#p13383"/>
		<title type="html"><![CDATA[HTTP issue]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13383#p13383"><![CDATA[
The header looks right. Are you sure the base64 encoding is correct?<br><br>Try looking in the server logs to see if there is a specific error.<br><br>One thing that may help is to set up a dummy server that accepts connections and just prints out exactly what is sent to it. Then you can see if the header is being sent correctly.<br><br>In tclsh:<br><div class="codebox"><p>Code: </p><pre><code>set vwaiter 0proc newcon {sock ip port} {  puts "connection from $ip:$port on $sock"  fileevent $sock readable [list reader $sock]  return 0}proc reader {sock} {  set len [gets $sock line]  if {$len &lt; 0} {    if {[eof $sock]} {    global vwaiter    incr vwaiter    close $sock    return 1    }    return 0  }  puts "sock $sock: $line"  return 0}socket -server newcon 3141vwait vwaiter</code></pre></div>Then try your script connecting to localhost:3141 and see what is printed out.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Nov 19, 2002 3:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-19T07:03:30-04:00</updated>

		<published>2002-11-19T07:03:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13361#p13361</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13361#p13361"/>
		<title type="html"><![CDATA[HTTP issue]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13361#p13361"><![CDATA[
I have managed to base even my work around eggdrop.<br><br>Some of my day to day jobs are done by a Tcl script. This includes obtaining router logs and so on.<br><br>Eggdrop will watch a specific file, and see when it's been updated.<br><br>It's contents are based on security messages, and other bits.<br><br>For the last part, I also wish to see if any of the router have fallen over, and let me know.<br><br>SNMP will tell me the routers system uptime, but it will not issue the uptime of a connection.<br><br>For this, I either have to parse the output from a telnet connection, or via a web-page.<br><br>The system returns 3 values for it's uptime. Time since last reboot, time since it last lost sync with the exchange and time that it's been authenticated to the ISP.<br><br>vaklues 2 &amp; 3 usualy stay the same. When both reset, it means I lst connection. When 3 is lower than 2, it means there has been a stability issue. This is what I need to catch.<br><br>The web-interface to the router, uses HTTP Basic authentication to protect it. As such, I can't seem to get past it.<br><br>Using the http Tcl package, I have tried using <div class="codebox"><p>Code: </p><pre><code>-headers [list "Authorization" "Basic $base64"]</code></pre></div>where $base64 is "user:pass" encoded. I have tried "user:pass", "user : pass" (note the spaces) combination to no avail.<br><br>Has any1 had any look with using the http package to navigate WWW-authenticate pages?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Nov 19, 2002 7:03 am</p><hr />
]]></content>
	</entry>
	</feed>
