• Welcome to Valhalla Legends Archive.
 

Rudimentary Warden information

Started by iago, February 28, 2008, 05:07 PM

Previous topic - Next topic
|

Dale

Quote from: MyStiCaL on July 17, 2008, 08:50 PM
Quote from: Dale on July 17, 2008, 08:45 PM
Quote from: MyStiCaL on July 17, 2008, 08:23 PM
Quote from: Dale on July 17, 2008, 08:21 PM
Quote from: MyStiCaL on July 17, 2008, 08:19 PM
question is there a bot that handles it on windows vista? ;[

I've lost my source, bot, keys and everything on my old computer when it gave up on life.



handles what on vista?...

warden or should i say is there an updated bot that handles warden for windows vista? duhh

the implement for warden will work on any OS if the application will run on that OS...

and yes, their are some bots that work, JavaOp2 As I recall correctly works fine, as of many others.

that would have already been figured, I'm just asking a simple question if anyone knows a publicly released bot that works on the vista operating system,  that supports warden.. and maybe a possible link.

</3 spht & </3 BNLS.


http://www.javaop.com/download.html

Barabajagal

http://rcb.realityripple.com

Vista support's not some amazingly hard thing... And there's an easy way to make any program run as administrator with manifest files:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <v3:trustInfo xmlns:v3="urn:schemas-microsoft-com:asm.v3">
    <v3:security>
      <v3:requestedPrivileges>
        <v3:requestedExecutionLevel level="highestAvailable" />
      </v3:requestedPrivileges>
    </v3:security>
  </v3:trustInfo>
</assembly>

Just save that as EXEName.exe.manifest and put it in the same place as the exe (making EXEName the EXE's name, durr), and the program will run as an administrator and should work just fine in Vista.

aton

#152
hi iago, i am trying to implement your stuff in linux.

is this the function you are using?

function RotateLeft32( Value : longword; Bits : longword ) : longword;
asm
mov cl, dl
rol eax, cl
end;


it would be nice if you post util.h and asm.h and their .c files too

MyndFyre

Quote from: Andy on July 17, 2008, 09:04 PM
Vista support's not some amazingly hard thing... And there's an easy way to make any program run as administrator with manifest files:
Ugh....  I cannot believe you want to encourage people doing stupid stuff such as running any program as an administrator.  Just blatantly violate LP.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

FrostWraith

There are tons of programs I use that have to run admin though because they won't work right otherwise.  One of which being the blizzard game Warcraft III.  Then there are others that it makes some sense to run as admin, like Wireshark.

MyndFyre

Quote from: FrostWraith on July 22, 2008, 11:32 AM
There are tons of programs I use that have to run admin though because they won't work right otherwise.  One of which being the blizzard game Warcraft III.  Then there are others that it makes some sense to run as admin, like Wireshark.

Wireshark allows you to install WinPcap so that you don't need to be an administrator to capture packets:


Warcraft III runs fine in the virtualized file system mode except when patching, which is almost acceptable.

WoW used to require admin to patch, but someone at Blizzard listened to me and now they download the patch to a place that doesn't require administrative permissions.

There is no reason for most applications to require administrative privileges to run normally.  But every time you run a process as an administrator, you're trusting that the application isn't going to run into a buffer overflow, or an improperly-dereferenced pointer, or any number of other security vulnerabilities that will compromise the security of your computer.

Unux users have been running with this benefit for a long time; I don't understand why Windows users are so resistant to the change.  I just bought a new laptop and was talking to a Microsoft MVP in app-dev about it and he saw a UAC dialog box pop up and asked me if I'd like to turn it off.  I couldn't believe it.

If your justification is that you need to patch your program, consider using Adobe's model.  Adobe applications are able to check whether they need updates without elevating, and if they determine that they need to, they start a separate process and prompt for elevation.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

iago

Quote from: aton on July 22, 2008, 10:37 AM
hi iago, i am trying to implement your stuff in linux.

is this the function you are using?

function RotateLeft32( Value : longword; Bits : longword ) : longword;
asm
mov cl, dl
rol eax, cl
end;


it would be nice if you post util.h and asm.h and their .c files too
The RotateLeft32 function is actually from a Windows library. But yeah, that function looks right (although I don't know where you get cl and eax from -- that the standard calling convention?).

You may be better off to start from my Java version, since I cleaned it up when I ported it. But eh?

Quote from: MyndFyre[vL] on July 22, 2008, 02:48 PM
Quote from: FrostWraith on July 22, 2008, 11:32 AM
There are tons of programs I use that have to run admin though because they won't work right otherwise.  One of which being the blizzard game Warcraft III.  Then there are others that it makes some sense to run as admin, like Wireshark.

Wireshark allows you to install WinPcap so that you don't need to be an administrator to capture packets:
<img>
Well, that's one case that admin access ought to be required. Letting any old user on the system sniff packets is just a problem waiting to happen. There are some places where admin privs should be required. Sniffing packets is one, playing a game is not.

This'll make an interesting test for broken AV:
QuoteX5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*


FrostWraith

Well for Warcraft III, it always says "Error writing to disk", even when not patching.  I get this when I try to connect.  Running as admin fixes this.
This could have to do with the installer I used.  I downloaded it from the blizzard.com/account thing.

With wireshark I did install winpcap with it but it just doesn't pick up on any available devices to listen on without running as admin.
Also, I only have v1.0.0, not 1.0.2, so that might have been changed.

Besides that, I do agree with you on the fact that programs should not have to be run as admin to function properly.

Hdx

Its the standard for blizzard games to download to the game folder [icon files, TOS files, Anything form bnftp]
A Simple fix for that would to move everything to temp/user folders.
I agree with MyndFyre. Having a 2nd application designed specifically for updating is the best solution so far.
Basically you have two situations that I like to build every program around.
1) Standard computer, Use temp/user folders, use the registry, etc...
2) Portable. Use the local folder only, no Registry/other folders.
Andy, on the other hand, has gone off the charts, Everything admin, use the system folder, etc....

Proud host of the JBLS server www.JBLS.org.
JBLS.org Status:
JBLS/BNLS Server Status

Warrior

* Warrior notes that he said all this, and had his posts trashed.
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

Barabajagal

#160
I'm giving a viable solution to fix applications that have not yet been ported to Vista. What the hell are you bashing on me for?

I posted on the last page that my bot was completely compatible with Vista. It only needs to run as administrator for updating itself (and the files it uses, some of which are stored in the system32 folder, for user convenience) and for hash files (already moved to app data for the next version). I'm not trying to argue with standard compliance.

aton

#161
edit: posted to the other (smaller) thread

Barabajagal

Okay, for those of you looking for a quick fix for warden and don't want to add a lot of stuff to your code, I've made things even easier.

http://realityripple.com/Uploads/Warden.zip

The Warden.dll is basically my code packaged in to two easy-to-call routines. Here's how you use it:

1) Add Warden.dll to your References.
2) Dim cWarden as New clsWarden at the top of whatever module/class/etc you're using for BNCS handling.
3) In 0x51 handling, add:
cWarden.StartWarden KeyHash, App.Path & "\Hashes\STAR\Starcraft.exe"
Replace KeyHash with at least the first 4 characters of your CDKey hash (you can send the whole thing if you want), and the path to Starcraft.exe to wherever your bot stores hash files.
4) in 0x5E handling, add the following:

Dim sData as String
  sData = cWarden.HandleWarden(inData)
  If LenB(sData) > 0 Then
    With Packet
      .InsertNonNTString sData
      .SendBNCS SID_WARDEN
    End With
  End If

That's it.

Dale

Quote from: Andy on August 04, 2008, 12:21 AM
Okay, for those of you looking for a quick fix for warden and don't want to add a lot of stuff to your code, I've made things even easier.

http://realityripple.com/Uploads/Warden.zip

The Warden.dll is basically my code packaged in to two easy-to-call routines. Here's how you use it:

1) Add Warden.dll to your References.
2) Dim cWarden as New clsWarden at the top of whatever module/class/etc you're using for BNCS handling.
3) In 0x51 handling, add:
cWarden.StartWarden KeyHash, App.Path & "\Hashes\STAR\Starcraft.exe"
Replace KeyHash with at least the first 4 characters of your CDKey hash (you can send the whole thing if you want), and the path to Starcraft.exe to wherever your bot stores hash files.
4) in 0x5E handling, add the following:

Dim sData as String
  sData = cWarden.HandleWarden(inData)
  If LenB(sData) > 0 Then
    With Packet
      .InsertNonNTString sData
      .SendBNCS SID_WARDEN
    End With
  End If

That's it.

Thank you.

Don Cullen

RealityRipple; it errors out saying:

'Run time error '53':

File not found: RSHA.dll'

I attempted registering the RSHA dll via regsvr32, referencing the RSHA dll via VB, both failed.

I'm guessing I'm the one to blame here; so what am I doing wrong? Thanks in advance for your time.
Regards,
Don
-------

Don't wonder why people suddenly are hostile when you treat them the way they shouldn't be- it's called 'Mutual Respect'.

|