Your browser does not seem to support CSS. If images appear below, please disregard them.
toggle
February
S M T W T F S
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29
Sponsored Links
Latest Postings
Topic Options
Rate This Topic
#17686 - 09/05/02 03:39 AM File binding...
Joined: Mar 2002
Posts: 256
ninjaneo Offline
UGN Security Staff
ninjaneo Offline
UGN Security Staff

Joined: Mar 2002
Posts: 256
CA, USA
Hey, I was wondering if anyone could help me with any of the following ideas...

I would like to figure out a way to have my .exe "bind" itself to a pre-existing exe...

And I have been trying to make my own installer... heh but VB sucks so badly that it needs OCX's to run the god damn installer... any ideas, to get the files copied and then run the thing... because adding API would be a nightmare...

Top
Sponsored Links
#17687 - 09/05/02 12:48 PM Re: File binding...
Joined: Mar 2002
Posts: 1,273
SilentRage Offline
DollarDNS Owner
SilentRage Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
As for the file binding... I don't know if that's even possible to do in VB. Trojan/Virus uses the technique of hooking interupt 13 I think to execute their code that was appended to the EXE.

As for the installer... No API huh? Well then, here's a solution for ya. You can create your own 'CAB' format. Here's an example of such:

LENGTH|FILE|LENGTH|FILE|...|0

The length fields are 4 bytes - a LONG value which says how many bytes after it is the next file. You read the file and save it someplace. Then you read the next 4 byte LONG value and extract it until you get a 0 length which means there's no more files.

Or maybe something a little more useful:

PATH|NULL|LENGTH|FILE|PATH|NULL|LENGTH|FILE...

Now your 'CAB' file contains a null terminated string containing the path to the following file. You can then create an installer which reads from this CAB file and installs as indicated. You can even add registry strings with a format like this...

Add a TYPE field consisting of 1 byte
Type 0 = File
Type 1 = Registry

0|PATH|NULL|LENGTH|FILE|1|REGPATH|NULL|...

Whatever you want man.


Domain Registration, Hosting, Management
http://www.dollardns.net
Top
#17688 - 09/06/02 09:56 PM Re: File binding...
Joined: Mar 2002
Posts: 256
ninjaneo Offline
UGN Security Staff
ninjaneo Offline
UGN Security Staff

Joined: Mar 2002
Posts: 256
CA, USA
:-D! heh thnx for the info... 1 question tho... would they still need that god damn vb6skit.dll or something rather...?

Top
#17689 - 09/06/02 11:14 PM Re: File binding...
Joined: Mar 2002
Posts: 1,273
SilentRage Offline
DollarDNS Owner
SilentRage Offline
DollarDNS Owner

Joined: Mar 2002
Posts: 1,273
OH, USA
they'll still need msvbvm60.dll. That's pretty much all you have to worry about. If a person's system is REALLY old, then they may need OLEAUT32.dll. not sure, I've only gotten that error once. But anyway, dunno anything about vbskit.dll


Domain Registration, Hosting, Management
http://www.dollardns.net
Top

Member Spotlight
Gremelin

Gremelin
Portland, OR; USA
Posts: 7,194
Joined: February 2002
Show All Member Profiles 
Forum Statistics
Forums46
Topics43,978
Posts79,152
Members2,157
Most Online1,567
Apr 25th, 2010
Top Posters(All Time)
UGN Security 37,141
Gremelin 7,194
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Newest Members
Herbert_Sherbert, codemauve, Lillysdragon1984, Brewwit, boa
2157 Registered Users
Who's Online Now
0 registered members (), 2 guests and 1 spider.
Latest News