Jump to content

NEED HELP !! :: Can i track who opened CDROM using autorun.inf? Or alternative?


sik91lx

Recommended Posts

Guys,

 

Basically we will be handing out 10,000 software installers on a CDROM. Each CDROM will have an autorun so when they pop the CDROM inside their machine, it will automatically launch setup.exe.

 

** Remember, each cdrom will have its own unique id code up to 10,000 codes.

 

We would like to get a report somehow, either php/mysql saying "CD XXXXX has been opened and software has been installed"

 

Do you guys know of such script?

 

Basically im guessing,

 

We insert this web link inside each autorun.inf so it reports to our database when the autorun plays..

 

we create a database with a table in SQL called tracking

 

Use PHP somehow to create $ID code names (company.com/tracking.php?IDXXXXX)

 

::::

 

You guys have any codes/scripts i can try out?

 

Or what do you guys recommend as in tracking down those 10,000 cds either they have been installed or not.

 

Thanks guys!

This can't be done with only PHP.  You need to create a program that runs in the installer that somehow contacts your webserver.

 

Understood, BUT

 

How about running the installer.exe and i can create a execute program command so right when the program has finished installing, it opens up the browser automatically and if they have internet access, they are able to goto a distink URL and it shows them "THANK YOU FOR INSTALLING BLAH BLAH" and that records the URL?

 

I may need you guys help with the scripting, im pretty sure someone has one written.

Quote from: DarkWater on Yesterday at 03:15:10 PM

This can't be done with only PHP.  You need to create a program that runs in the installer that somehow contacts your webserver.

 

 

Understood, BUT

 

How about running the installer.exe and i can create a execute program command so right when the program has finished installing, it opens up the browser automatically and if they have internet access, they are able to goto a distink URL and it shows them "THANK YOU FOR INSTALLING BLAH BLAH" and that records the URL?

 

I may need you guys help with the scripting, im pretty sure someone has one written.

 

correct that is what you'll have to do..

 

on the php side its easy.. just use the GET method on your URL

 

so you url looks like this:

 

www.mysite.com/page.php?code=YOURCODEHERE

 

php:

<?php

if(!(isset($_GET['code'])))
{
$code='';//NOT SET SO CODE = NOTHING
}
else
{
$code=$_GET['code'];//IS SET SO CODE = GET VALUE
}

?>

 

now you have the code to put into a process to check this off your list.

not knowing how all of your stuff is setup, you'll have to figure the rest out.

In theory this is all very easy with PHP and $_GET but keep in mind that some Firewalls, Antivirusez, Internet Security software might interpret this as a sort of attack or takeover.

I mean telling some setup.exe to open the browser and acces some http.

 

If this is not a problem for you use something like:

 

http://example.com/tracking.php?code=XXXXXXX

 

tracking.php should look something like this:

<?PHP
$code = $_GET[code];

mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable to connect to database");
@mysql_select_db("$DBName") or die("Unable to select database $DBName");

$sqlquery = "INSERT INTO code_table VALUES('field1', 'field2', ... , '$code')";

echo "Some message...";

?>

Once again if you don't want so exploit the user's browser you might want to look into some PEARL or other stuff (i'm no expert)

[/code]

If you are writing the installer itself, would it be possible to use something like the cURL library from the actual application and have it post to a url on the server? Than just handle it as if it was posted data? Would get around having to open a browser etc.

 

I know cURL is available for a plethora of packages

 

http://curl.haxx.se/

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.