Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: IP address matching and telnet connections

by jlongino (Parson)
on Sep 14, 2001 at 02:52 UTC ( [id://112330]=note: print w/replies, xml ) Need Help??

in reply to IP address matching and telnet connections

You really don't give enough information here. You say you want to telnet to the IPs you've found. What are you trying to do once you've initiated the connection? Do you just want to get as far as the login prompt and then close the connection? Are you trying to actually login and do something? If so, you're going to need logins and passwords.

We'll try to help if we can get more info. Some samples of your code will help too.

@a=split??,'just lose the ego and get involved!';
for(split??,'afqtw{|~'){print $a[ord($_)-97]}
  • Comment on Re: IP address matching and telnet connections

Replies are listed 'Best First'.
Re: Re: IP address matching and telnet connections
by damian1301 (Curate) on Sep 14, 2001 at 03:43 UTC
    Or maybe the plan was to get to the login and potentially try to crack the password...I don't think I would trust this either way.

      Damain, I had "NO" intention to crack password or whatever you think of. I don't have to do such a thing because I have access to every folders! This program is for those who do not know how to use system command. Thank you for your reply.
Re: Re: IP address matching and telnet connections
by Anonymous Monk on Sep 14, 2001 at 18:25 UTC
    Thank you for the reply. My program is to be able to use telnet in window without using all these UNIX commands to change directories or retrieve folders/files and etc. First, My program is to use HTML FORM to get user IP address using search user ID(query to database file).when I do search --I found user IP address and NEXT, once I found the user IP address, I need to use the user IP to open telnet using the IP address--using HTML FORM such as: Please enter user IP address: If I enter the IP address for instance, then I would be able to connect directly to the IP address NEXT, after getting connected to the IP address, (it means connected to the telnet) thru' window. I need to be able to create another HTML form to be able to enter query instead of command. I do need to enter password or anythingelse because this program is restricted to specific personnel. What I means is the people did not know how to use all these UNIX command such as change directories and retrieve file/folders. SO I need to get something to be able to do it in HTML form, replacing the system command. such as: Please choose: option 1: write option 2: read option 3: quit these option must be in the drop down menu in the HTML form.When I choose option 1, I would be able to write into the file and soforth. I had done some part of the program but my biggest problem is to use HTML FORM to enter user IP address and get connected. I would appreciate your help. Thanks
      If I understand your situation correctly, this is almost exactly what Cisco provides in part of their web interface to their low-end routers.

      It will take me a while, but when I get a chance will check the HTML to see if is legal for me to publicly reproduce.   If so, I'll post here.   I *think* it might do what you want. (or I may just be fullabeans {grin})
          striving toward Perl Adept
          (it's pronounced "why-bick")

      Update: After a bit of pondering, I don't think the Cisco code/markup would help you, since it executes on each local device and requires a webserver running locally as well.   You appear to want a CGI interface to telnet to *other* hosts, which is a little different matter.   Unless you employ rhosts or the like, you'll have to pass user ID and Password to do this.

      As jlongino suggests, you may want to look into the CPAN modules and Net::Telnet.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://112330]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-20 16:43 GMT
Find Nodes?
    Voting Booth?

    No recent polls found