Anybody know how to make simple windows program?

Anybody know how to make simple windows program?

PostBy: Richard S. On: Sun Dec 28, 2008 8:16 am

If you do I have a very simple idea that I'd like to share. I need help on the windows end for something I'd like to set up on my server that could benefit everyone. I'm pretty sure this would only require a little bit of work but I don't know what's involved with making a windows program.. if it were PHP I could throw it together in a few minutes.
Richard S.
 
Stoker Coal Boiler: Van Wert VA1200
Coal Size/Type: Buckwheat/Anthracite

Re: Anybody know how to make simple windows program?

PostBy: Lumberjack On: Sun Dec 28, 2008 8:32 am

heh.... no such beast

Some programming suites do come with a nice wrapper for such occasions
Lumberjack
 

Re: Anybody know how to make simple windows program?

PostBy: Richard S. On: Sun Dec 28, 2008 8:41 am

Lumberjack wrote:heh.... no such beast

Some programming suites do come with a nice wrapper for such occasions


How true, I've been working a 1 hour script the last week. :lol: I don't think a wrapper will work as I'll need windows functions which I'm not familiar with. I'll rephrase my statement to I could do it on Linux machine using PHP. :P
Richard S.
 
Stoker Coal Boiler: Van Wert VA1200
Coal Size/Type: Buckwheat/Anthracite


Re: Anybody know how to make simple windows program?

PostBy: ErikLaurence On: Sun Dec 28, 2008 1:23 pm

Stuff like this is why they invented Runtime Revolution.

http://www.runrev.com/

What do you need to do?
ErikLaurence
 
Stove/Furnace Make: Reading Lehigh
Stove/Furnace Model: LL Hyfire II w/heat jacket

Re: Anybody know how to make simple windows program?

PostBy: Yanche On: Sun Dec 28, 2008 2:13 pm

Writing a Windows computer program is no different than one on any other operating system. Select your programing language, write your source code, compile the source code to an executable, then run it. Repeat until you have it right. What's difficult is understanding all the built-in functions any operating system provides and how to make use of them in your program.
Yanche
 
Stoker Coal Boiler: Alternate Heating Systems S-130
Coal Size/Type: Anthracite Pea

Re: Anybody know how to make simple windows program?

PostBy: Richard S. On: Mon Dec 29, 2008 12:17 am

ErikLaurence wrote:What do you need to do?


Well I have an idea that can benefit the members here or whoever uses this but I need help on the Windows end of it. I have a simple workaround that will work but I would prefer it was done right. I guess the complexity depends on how far someone is willing to take it. It could possibly be a very complex task if someone wanted to take it up... or I could just use a workaround but not quite as effective.

In a nutshell I'm using a "poor mans" version of anti theft device for computer. My home page is set to a specific page on my server which logs the IP and a timestamp and is then redirected to another page. If someone steals my computer and fails to reformat the drive or examine the browser settings before launching it they are done because I have will have captured the IP which I can then turn over to authorities. :)

It's not 100% and would certainly be better if it was hidden "spyware" type deal which is what I want someone else to write. But even a process that is not hidden would be better than what I have now, I want to make it so as soon as the computer connects to the internet it will silently connect to the address on my server. I'll take care of all the server side things.
Richard S.
 
Stoker Coal Boiler: Van Wert VA1200
Coal Size/Type: Buckwheat/Anthracite

Re: Anybody know how to make simple windows program?

PostBy: xackley On: Mon Dec 29, 2008 10:42 am

Simple solution
create a dos batch file

ipconfig /all >t.txt
tracert google.com >> t.txt

The tracert may take time, but if the computer is behind a firewall, the ipconfig is worthless.

Then FTP it.
Here is an example from http://www.computing.net/answers/programming/ftp-commands-in-a-dos-batch/10408.html
quote:
You do not need to have a batch to do this, exploit instead the -s switch of the command as explained below.

Using a text editor, e.g. NotePad or Edit, set up a file containing your Ftp commands, so

FtpCom.txt
------------
open hostname
username
password
cd /whicheverdirectory
binary
put a:\filename

Then just type at the prompt Ftp -s:FtpCom.txt where FtpCom.txt is the name (and pathname) of the file you edited. Do not have blanks in the pathname-file name.

endquote of site.

Of course, "Ftp -s:FtpCom.txt" could be a line in your batch file.


Then to get it to execute, go to start\Run and type gpedit.msc
In Local Computer Policy/Computer Configuration/Windows Settings/Scripts
Tell it to run at start up and shutdown.

There are utils out there to make bat files run invisible, if needed to hide the code being executed.
You might be able to send an email from a command prompt (batch file), with the right email software.
I would check the IP address in the T.TXT using the Find command, then check errorlevel to exit if it was an expected address.

Link to Site with batch file info
http://www.robvanderwoude.com/batchfiles.html
xackley
 
Stove/Furnace Make: Leisure Line
Stove/Furnace Model: Pocono

Re: Anybody know how to make simple windows program?

PostBy: Richard S. On: Mon Dec 29, 2008 2:58 pm

xackley wrote:You might be able to send an email from a command prompt (batch file), with the right email software.


That's an idea too and wouldn't require that it connect to external server, I do something similar now on this server. If anyone successfully logs in as root I get an email. Little late at that point to prevent any damage they may do but I'll know it's been breached.

My plans are to include a similar feature server side, when the server gets pinged I'll have an option to receive an email. You could actually use it to monitor anytime the computer gets connected to the internet. You'll get a small plain text email with the time and date it connected and from what IP.
Richard S.
 
Stoker Coal Boiler: Van Wert VA1200
Coal Size/Type: Buckwheat/Anthracite

Re: Anybody know how to make simple windows program?

PostBy: cArNaGe On: Mon Dec 29, 2008 5:18 pm

Richard S. wrote:
ErikLaurence wrote:What do you need to do?




In a nutshell I'm using a "poor mans" version of anti theft device for computer. My home page is set to a specific page on my server which logs the IP and a timestamp and is then redirected to another page. If someone steals my computer and fails to reformat the drive or examine the browser settings before launching it they are done because I have will have captured the IP which I can then turn over to authorities. :)


Leave your laptop running on your porch at night when you go to bed?
cArNaGe
 

Re: Anybody know how to make simple windows program?

PostBy: av8r On: Mon Dec 29, 2008 6:10 pm

Richard, you know this stuff has existed for years already, right?
av8r
 
Hot Air Coal Stoker Furnace: Leisure Line Hearth with twin turbos (sounds like it)
Stove/Furnace Make: Leisure Line
Stove/Furnace Model: Hearth model with twin turbos

Re: Anybody know how to make simple windows program?

PostBy: Richard S. On: Mon Dec 29, 2008 6:55 pm

Yea I know but you gotta pay $$$ for it, hence my "poor mans" version. :D This will be free. Not as robust as those services but better than nothing.
Richard S.
 
Stoker Coal Boiler: Van Wert VA1200
Coal Size/Type: Buckwheat/Anthracite

Re: Anybody know how to make simple windows program?

PostBy: av8r On: Tue Dec 30, 2008 12:26 pm

Richard S. wrote:Yea I know but you gotta pay $$$ for it, hence my "poor mans" version. :D This will be free. Not as robust as those services but better than nothing.


Just so you know...the "for-pay" versions aren't very good either. They've only very recently started adding code to the BIOS which loads at PTOR. That helps a bit, but the track record for this security stuff isn't good. I went through an analysis earlier this year and we decided to pass. It's hard to get any ISP to cough up ARP table logs.
av8r
 
Hot Air Coal Stoker Furnace: Leisure Line Hearth with twin turbos (sounds like it)
Stove/Furnace Make: Leisure Line
Stove/Furnace Model: Hearth model with twin turbos

Re: Anybody know how to make simple windows program?

PostBy: Richard S. On: Wed Dec 31, 2008 1:57 am

My "poor mans" version evolved from a discussion over at Webmasterworld, it was an original thought at least as far as doing it yourself but I'm sure someone thought of it before me. The topic came up about Macbook that was stolen that had one of the cameras on it. The thief connected to the internet but it was set to connect to some kind of IM account. The owner noticed they were "online" and remotely connected to the Macbook through the IM software or whatever it was and took a picture of the guy. :lol:

Those services came up and the light bulb went off...its so simple to do for me or anyone else that has access to a server it's ridiculous. I don't know how well they work but some of them are tied directly to the hardware and as you have mentioned in the BIOS. That's ideal as you could do anything assuming it works. The features they had listed for the one service included locking the computer and the drives etc. Now I know the bios can be reset by taking the battery out so i don't know how well it works...
Richard S.
 
Stoker Coal Boiler: Van Wert VA1200
Coal Size/Type: Buckwheat/Anthracite

Re: Anybody know how to make simple windows program?

PostBy: av8r On: Wed Dec 31, 2008 3:10 pm

Richard S. wrote: Now I know the bios can be reset by taking the battery out so i don't know how well it works...


No, you can't reset the BIOS other than the factory defaults by removing power. It's NVRAM so what goes in there, stays in there, program-wise.

Here's one of the programs I tested last year.

http://www.absolute.com/laptop-security-solutions.asp They work with the vendor to embed the software in the newer BIOS security chips. No way to flash those chips...yet.
av8r
 
Hot Air Coal Stoker Furnace: Leisure Line Hearth with twin turbos (sounds like it)
Stove/Furnace Make: Leisure Line
Stove/Furnace Model: Hearth model with twin turbos

Re: Anybody know how to make simple windows program?

PostBy: Richard S. On: Wed Dec 31, 2008 4:58 pm

Perhaps I phrased that worng but resetting the factory defaults is what I meant. For example you can set a password in the bios which AFAIK is the lowest level password you can use because the machine won't even boot the HDD's if you don't don't know it. Taking the battery out however will reset it null.

I haven't mucked around in there much except to make my 3.0 machine a 3.3ghz... 3.4 got a little unstable. :D
Richard S.
 
Stoker Coal Boiler: Van Wert VA1200
Coal Size/Type: Buckwheat/Anthracite