PDA

View Full Version : Easy spells_us.txt script ;)



UnGod
10-13-2003, 10:02 AM
#!/bin/bash
`which wget` http://patch.everquest.com:7000/patch/everquest/main/spells_us.txt.gz
`which gunzip` spells_us.txt.gz
`which mv` /usr/local/share/showeq/spells_us.txt /usr/local/share/showeq/spells_us.txt.old
`which mv` spells_us.txt /usr/local/share/showeq/


^^^^ simple shell script to download the spells_us.txt straight from the EQ patch servers and move it to the showeq dir ;)

PS - Once I get a bit of time to code again (few days) I'l add an option into SEQ to download this file using QT's http stuff :)
(triggered of course, automatic stuff is bad ;) But this should work for now :)

UnGod/Belith

bonkersbobcat
10-13-2003, 12:14 PM
Is there any thing in the http headers what wget sends or doesn't send that would allow SOE to distinguish this request from the one their client makes?

Cryonic
10-13-2003, 12:20 PM
There engine probably just uses the IE signature in the headers for the request which wget can mimic if needed.

UnGod
10-13-2003, 12:59 PM
Add a:



--user-agent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)"


To the wget line if you want the agent to *look* like msie :)

karrde
10-13-2003, 02:51 PM
Frankly I'd be much more worried about them monitoring the frequency and/or timing at which an IP pulls the file more than I'd be worried about the "browser signature" to give you away.

Dark
10-13-2003, 03:13 PM
Hmmmm, I just zip mine up on the win machine. put it on a floppy and transfer it that way.
All working fine.

fhm
10-13-2003, 07:43 PM
I just enabled FTP on my linux box, and wrote a VBS script to copy it over from my windows machine :D

Regards,

CJ

karrde
10-14-2003, 08:49 AM
Frankly I think the eaisest thing is to share out your EQ folder, and smbmount the share on your linux box. Then I just do a
ln -s /eqshare/spells_us.txt /usr/local/share/showeq/spells_us.txtAnd you never have to worry about it, it'll update when you patch.

darkgrue
12-22-2003, 08:01 PM
If you want it to look exactly like the patcher, use:

--user-agent="Sony Patcher"

jesterbam
12-23-2003, 04:40 AM
Here is a post that has alot of ways to get the files. You can skip the first 7 or 8 posts. Butr after that everyone listed how they get the file and some are very easy.

fryfrog
01-12-2004, 09:19 PM
Originally posted by darkgrue
If you want it to look exactly like the patcher, use:

--user-agent="Sony Patcher"

Dumb question, but how do you know that is what their patcher's agent flag is?

uRit1u2CBBA=
01-13-2004, 12:10 AM
Probably packed sniffed :)

darkgrue
01-14-2004, 05:51 PM
Originally posted by uRit1u2CBBA=
Probably packed sniffed :)

Weel, sure, of course!

Specifically, I used EffeTech HTTP Sniffer (http://www.effetech.com/sniffer/) , since I had it handy. I'd used it previously for security auditing, and debugging a reverse Web proxy implementation. Sure, could have used etherial or TCPDump or any of a number of other options, but an application-layer sniffer's just so much more handy.

The other option would have been to set up a logging Web proxy, and point the game at that (I think - since EQ uses all the DirectX stuff, it should in theory inherit the Internet Settings). More complicated and messy, but it's really handy when trying to investigate dial-up connections (http://www.gue-tech.org/darkgrue/attic/sega/dreamcast/internet/index.html) which would otherwise be technically infeasible to "sniff".

ObScript:

#!/bin/sh

USERAGENT="Sony Patcher"

for file in eqstr_us.txt spells_us.txt
do
echo "Retrieving $file..."
wget --user-agent="$USERAGENT" http://patch.everquest.com:7000/patch/everquest/main/$file.gz
gunzip $file.gz
if test -f /usr/local/share/showeq/$file
then
mv /usr/local/share/showeq/$file /usr/local/share/showeq/$file.old
fi
mv $file /usr/local/share/showeq/
done

Could_Be_Anyone
02-22-2006, 10:52 AM
Just an update if anyone is using a toy like this..

As of 02/22/06, the agent string is : SOEPatcher/curl as reported by http://www.effetech.com/sniffer/

tanner
02-22-2006, 06:55 PM
For debian people

$ sudo apt-get update
$ sudo apt-get install showeq-contrib

See my .sig for how to get the appropriate sources.list entries for this package.

xerxes
12-06-2022, 12:44 PM
Anyone have this working? Having issues finding a working link to the patch server.

cn187
12-06-2022, 01:04 PM
AFAIK, the way the patcher works now is considerably different than when this script was written. I expect the script would have to be pretty much completely rewritten.

To be honest, you're probably better off just doing a quick copy of the file from your EQ box to your SEQ box. If you don't like doing it manually, that could be scripted pretty easily (though there are a number of different ways you could do it).

xerxes
12-06-2022, 03:25 PM
Yeah, I went from copying the files with a script, to symlinking. Both require the origin PC to be powered up. Figured I would try to grab the files directly from the source and remove the dependency on a single PC.