How to implant a *special* VBScript into php code?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
siskokid
Forum Newbie
Posts: 9
Joined: Mon Jun 25, 2007 2:10 am

How to implant a *special* VBScript into php code?

Post by siskokid »

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi everyone,

I have the problem that Internet Explorer does not want to execute a vbscript, because with this script I draw some information out of the Registry. I enclose the script by the following

Code: Select all

<?php

echo<<<HTML
<script language="VBScript">	

/****
my script
****/

HTML;

?>
This doesnt help though :( I tried other vbscript code and it worked. Only the code, I draw data from the Registry with, doesnt work in the php script above :( I executed the code with a .bat file and it worked... the bug is not in the code itself. It doent give an error in the Explorer neither, but it doesnt do the work it is supposed to do :(

Could anyone help me with it?

Best,
siskokid


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

If Microsoft says "you don't have access to the registry," chances are that you don't have access to the registry. I can't think of any reason for you to need to do this. That is a privilege reserved to Microsoft.com.
siskokid
Forum Newbie
Posts: 9
Joined: Mon Jun 25, 2007 2:10 am

Post by siskokid »

... but I have the access tho the Registry with VBScript! I just cannot do it with PHP :(
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

second thread on viewtopic.php?t=69659
btw: the php part is irrelevant here. The browser never sees the pp script. It only get's the output of the php script, and in this case that's is the vbscript.

You wouldn't just everybody to be able to access your registry from the web, would you?
Whom's network data do you want to get?
siskokid
Forum Newbie
Posts: 9
Joined: Mon Jun 25, 2007 2:10 am

Post by siskokid »

Hi volka,

Yes I put a second thread on the subject, because I didnt get much help :( First of all, if I really wanted somebody's data on the network, provided that I had some administrative privileges, I would have already got it ;) I really need to know how can I do it with PHP, because I already succeded with VBScript!

Best,
siskokid
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

PHP can't do it.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Invading your users privacy is not something I'd suggest. The privacy policy on your website would end up looking horrendous.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post by Benjamin »

@siskokid - we are not going to help you "hack" if those are your intentions.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

I don't think that's the intention.
But what are you trying to achieve? When, where and why do you need the infos about the network adapters?
siskokid
Forum Newbie
Posts: 9
Joined: Mon Jun 25, 2007 2:10 am

Post by siskokid »

Hi everzbody :)

Like I already told you, if I wanted to hack something with my code, I would have already done it with my VBScript. I need the infos for a project (web application) on the local network I am working on in my company. So, no worries, no hacking intentions are involved. But like I also told you, any help with php in this connection would be appreciated :)

Best,
siskokid
Post Reply