BrettF Posted August 11, 2009 Share Posted August 11, 2009 (edited) Just some fun from the other day, when I wanted to learn a little more about Telnet servers...What it does:This code allows you to retrieve information from the computer running the server, through the telnet interface. Only users with access can be allowed to access the information, which is hard coded into the script. The computer's information is retrieved by using CompInfo.au3.Download it:Download includes main script, and CompInfo.au3.Telnet Computer Info Server.zipHow do I use it?First off, the easiest way is probably to test it in your local network... So that is how I shall do these steps.Step 1) Start the server. You may compile and run, or just run it directly from SciTe.Step 2) Take note of the local IP that the server is running on. In my case, it is 192.168.0.100, so I will use this as an example.Step 3) Go to another computer (or the same) and go to run. Type in "telnet 192.168.0.100" without the quotes, replacing my IP with the one you noted in step 2.Step 3)Now you can use the server. To log in, the default is "Username" and "pass" (case sensitive) which you must enter without pressing backspace... It doesn't like backspace. Once logged in successfully, you can run commands in the GET <TYPE> <COMMAND>. Type can be any one of the following:HardwareSoftwareHardware command can be:DrivesPrintersProcessorsBIOSSoundCardsVideoCardsKeyboardMouseSystemProductNetworkCardsSystemMonitorsMotherboardBatteryMemorySoftware Commands can be:StartupSoftwareUsersGroupsServicesThreadsProcessesOSsSharesEventLogsBootConfigExtensionsDesktopsDependentServicesPrintJobsLoggedOnUsersKnown Bugs:Backspace issues, password being shown etc...Enjoy!Brett Edited August 11, 2009 by BrettF Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
enaiman Posted August 11, 2009 Share Posted August 11, 2009 Nice piece of code mate Haven't tested it, just looked over the code. In the event that I'll need it sometime the thread earned a bookmark Keep up the good work. >_< SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
BrettF Posted August 12, 2009 Author Share Posted August 12, 2009 Thanks! Cheers, Brett >_< Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
D00M4N Posted January 5, 2010 Share Posted January 5, 2010 looks soooo good !!!! i will try now Link to comment Share on other sites More sharing options...
James Posted January 5, 2010 Share Posted January 5, 2010 After sending the data to the telnet client, you forget to send the CompInfo> string again, so it looks like it's pausing. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now