UGN Security Forums
My ProfileMember DirectoryLogin
Search our ForumsView our FAQView our Site Rules
View our CalendarView our Active TopicsGo to our Main Page

UGN Security Store
 

Network Sites UGN Security, The GoNix Initiative, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
September
Su M Tu W Th F Sa
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 30
Sponsored Links
Latest Postings
Doom 3
by Cyrez
09/11/14 08:58 PM
The History Thread...
by Cyrez
09/11/14 08:56 PM
Amazon Gift Card Generator/KeyGen?te
by Gecko666
08/22/14 09:21 AM
Latest Reviews
Topic Options
Rate This Topic
#17686 - 09/04/02 08:39 PM File binding...
ninjaneo Offline
UGN Security Staff

Registered: 03/06/02
Posts: 256
Loc: 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 05:48 AM Re: File binding...
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: 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 02:56 PM Re: File binding...
ninjaneo Offline
UGN Security Staff

Registered: 03/06/02
Posts: 256
Loc: 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 04:14 PM Re: File binding...
SilentRage Offline
DollarDNS Owner

Registered: 03/04/02
Posts: 1273
Loc: 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

Featured Member
Registered: 03/02/02
Posts: 136
Forum Stats
2148 Members
46 Forums
34290 Topics
69459 Posts

Max Online: 1567 @ 04/25/10 02:20 AM
Top Posters
UGN Security 27452
Gremelin 7192
§intå× 3255
SilentRage 1273
Ice 1146
pergesu 1136
Infinite 1041
jonconley 955
Girlie 908
unreal 860
Newest Members
Gecko666, defghi795767, Devo60, ali, lavos
2147 Registered Users
Who's Online
0 registered (), 278 Guests and 258 Spiders online.
Key: Admin, Global Mod, Mod
Latest News


Donate
  Get Firefox!
Get FireFox!