Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

Computer Info Telnet Server


  • Please log in to reply
4 replies to this topic

#1 BrettF

BrettF

    My Drunk Monkey Guerilla is gonna getcha!

  • MVPs
  • 7,662 posts

Posted 11 August 2009 - 10:11 PM

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.
Attached File  Telnet Computer Info Server.zip   26.07KB   666 downloads

How 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:
Hardware
Software

Hardware command can be:
Drives
Printers
Processors
BIOS
SoundCards
VideoCards
Keyboard
Mouse
SystemProduct
NetworkCards
System
Monitors
Motherboard
Battery
Memory

Software Commands can be:
Startup
Software
Users
Groups
Services
Threads
Processes
OSs
Shares
EventLogs
BootConfig
Extensions
Desktops
DependentServices
PrintJobs
LoggedOnUsers

Known Bugs:
Backspace issues, password being shown etc...

Enjoy!

Brett

Edited by BrettF, 11 August 2009 - 10:11 PM.








#2 enaiman

enaiman

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 1,922 posts

Posted 11 August 2009 - 11:48 PM

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 :)


#3 BrettF

BrettF

    My Drunk Monkey Guerilla is gonna getcha!

  • MVPs
  • 7,662 posts

Posted 12 August 2009 - 12:22 AM

Thanks!

Cheers,

Brett

>_<

#4 D00M4N

D00M4N

    Seeker

  • Normal Members
  • 9 posts

Posted 05 January 2010 - 03:45 PM

looks soooo good !!!! i will try now

#5 James

James

    Universalist

  • MVPs
  • 10,223 posts

Posted 05 January 2010 - 06:03 PM

After sending the data to the telnet client, you forget to send the CompInfo> string again, so it looks like it's pausing.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users