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, Elite Web Gamers, Back of the Web, EveryDay Helper, VNC Web Design & Development
Our Sponsors

Latest Postings
Owning Servers
by Gizmo
Today at 07:20 AM
my old account still exists!
by Gizmo
08/19/08 02:27 PM
Burger King gone Wild!
by Gizmo
08/08/08 11:42 PM
PDX 2600
by rbcp
08/07/08 12:46 AM
The Pirate Bay- shut down?
by ZER0_DECEPTION
08/05/08 09:07 PM
Windows Events for Changing Access rights to a folder or a File
by Gizmo
08/05/08 12:32 PM
question about IE and CSS
by §intå×
08/04/08 08:51 PM
Server
by Gizmo
08/01/08 01:29 AM
Topic Options
#17686 - 09/04/02 11:39 PM File binding...
ninjaneo Offline
Microwavable Pillow Tosser

Registered: 03/06/02
Posts: 229
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
Our Sponsors
Sponsor Our Sponsors

Top  
#17687 - 09/05/02 08: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 05:56 PM Re: File binding...
ninjaneo Offline
Microwavable Pillow Tosser

Registered: 03/06/02
Posts: 229
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 07: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



Forum Stats
6911 Members
44 Forums
10465 Topics
45205 Posts

Max Online: 677 @ 06/30/07 10:06 PM
Top Posters
Gizmo 6930
UGN Security 3441
§intå× 3250
IceMyst 1449
SilentRage 1273
Ice 1146
pergesu 1134
Infinite 1039
jonconley 954
Girlie 903
Newest Members
red queen, byopc, cybermox, NiPah, mcscrwdy25
6911 Registered Users
Who's Online
0 Registered (), 9 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Latest News
Update Humpday - Aug 27, 2008
by Gizmo
08/28/08 12:58 AM
Update Humpday - Aug 20, 2008
by Gizmo
08/21/08 01:48 AM
Update Humpday - Aug 14, 2008
by Gizmo
08/14/08 08:33 AM
Update Humpday - Aug 06, 2008
by Gizmo
08/06/08 08:05 AM


Donate

Get the Google FireFox Toolbar
Get Firefox!
Get FireFox!