Jump to content

Recommended Posts

Posted

Hey guys. I don't uderstand active x and how to program it. but can I use this in a web site???

if so then I want to write a active x script that downloads and runs a au3 script(compiled) for my web site.

If someone can help that would be great.

Thanks A lot

Check out ConsultingJoe.com
Posted

Hey guys. I don't uderstand active x and how to program it. but can I use this in a web site???

if so then I want to write a active x script that downloads and runs a au3 script(compiled) for my web site.

If someone can help that would be great.

Thanks A lot

So you want to run malicious code on an unsuspecting users machine?

I would probably suggest you look elsewhere.. and take a long walk off a short pier.

Posted

So you want to run malicious code on an unsuspecting users machine?

I would probably suggest you look elsewhere.. and take a long walk off a short pier.

No I don't why daoes everyone suspect shit like that. I just want to learn activex and see if you can have it run a program through a site.

And if you must know the code would just return to a log file of what the computers name is:

is it posible???

Check out ConsultingJoe.com
Posted (edited)

1 solution which I know of is to write some Java code to run the compiled script.

Then you take advantage of "Java Web Start" and store the *.class bytecode files into a *.jar along with the appropriate META-INF file.

The upshot of all this is that the user gets a dialog box where he can select whether he wants to run your application or not, and if yes, he will be able to run it.

#)

EDIT: ActiveX will ask the user if he wants to run the app also, but most browsers just default to NO.

Edited by nfwu
Posted

Yes you can do this on unprotected computers. Microsoft used to have a free VB ActiveX version. Not shure if it is around anymore. But then again they have hevely promoted a free download and usage of Visual Studio Express lately. Search on msdn.microsoft.com

Posted

ActiveX is intended for IE browsers. Why not create a simple .hta (hipertext application) page? With simple javascript or vbscript, as you prefer, you can create the downloader/run script. User is also asked if he likes to run this script locally.

Posted

ActiveX is intended for IE browsers. Why not create a simple .hta (hipertext application) page? With simple javascript or vbscript, as you prefer, you can create the downloader/run script. User is also asked if he likes to run this script locally.

I don't know much about it though is there a tutorial for this
Check out ConsultingJoe.com
  • 1 month later...
Posted

<script>
var w = new WScript();
document.write("<pre>Computer Name: " + w.network.computerName + "<br>  User Name: " + w.network.userName);
</script>

Note that I see any purpose to it, or any use to it - but I also see no harm in it - considering it wont run unless the user has your site listed as trusted in IE - and wont run in Moz (not sure about Opera)

.. but since you said you do not mind activeX - which that is - that is a whole simplier, easier, and everything else than writing something for them to download to find out that info.

Posted

The AutoItX object does NOT load a script. It contains a list of functions that can be called from any working container.

Why do you want the computer name? The computer name can change from day to day, from user to user, from partition to partition, and can be used by any number of computers. Computer name alone is rather useless. If you really want a computer's online identifier, locate the Network Interface Card's Media Access Control address. That is burned into the NIC and cannot be changed.

Posted

The AutoItX object does NOT load a script. It contains a list of functions that can be called from any working container.

Same difference - its no different than if you write a php script, and include another php script, or in a webpage - load up an external JS file - the last two are easier to understand, and more simplistic - but its the same thing.

When you attach to an external ActiveX DLL or EXE - or any other sort of linking - you load up the "script" at that point - then the functions are available until such a time as you unload the "script"

There is no real difference between a scripting langauge , and a compiled language (before its compiled), between IE HTML, Standard HTML, VB6, AutoIT, .net, Pascal, PHP, Perl, JScript, Javascript, vbScript, Java, Basic, C++,C#,C, and any other computer language when you can think of.

They are all text. Nothing more, nothing less. You have to arrange each in a different way to get it to do what you want, thats for sure - but in the end - its just text. If you are calling a function from another object, you are in essense, loading up a script, and running part of it - just as you would an external JS file.

Even an object, is not really an object - an object is a ball, a beer can, a rock - not something on a computer - what is called an object on a computer is nothing more than a bunch of text, maybe compiled, maybe not.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...