The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
using shell script to telnet ricky katix SUN Solaris 6 01-16-2008 02:27 PM
difference between AIX shell scripting and Unix shell scripting. haroonec Shell Programming and Scripting 2 04-12-2006 09:12 AM
telnet & su in shell script vastare Shell Programming and Scripting 1 01-19-2006 11:47 AM
Telnet FTP scripting w33man UNIX for Dummies Questions & Answers 2 09-18-2003 01:45 PM
scripting Telnet TRUEST UNIX for Dummies Questions & Answers 2 07-01-2003 01:35 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 09-06-2006
juniordevil juniordevil is offline
Registered User
  
 

Join Date: Sep 2006
Posts: 2
Unhappy Shell scripting with Telnet

Hi, im brasilian, sorry for bad english ok? Well, im writing one honeypot, look:

#!/bin/bash
echo ""
echo `cat /etc/welcome.pot`
echo ""
echo -n "login: "; read usuario
echo -n "Password: "
#stty -echo
read -s senha
#stty echo
exit

Running it in localhost, thats right:

kurumin@servidor:~$ honey.pot

FreeBSD/i386 (servidor) (ttyp0)

login: root
Password:
dear friend, the pass is root, and user root

Good, then I:

$ sudo cat "telnet stream tcp nowait root /usr/bin/honey.pot" >> /etc/inetd.conf

And:

kurumin@servidor:~$ telnet servidor
Trying 127.0.0.1...
Connected to servidor.
Escape character is '^]'.

FreeBSD/i386 (servidor) (ttyp0)

login: root
Password: root

, and user rootpass is root

Two things: The password is not hide and the message in the end.
OK, trying the command stty -echo:

login: root
Password: stty: standard input: Invalid argument

stty: standard input: Invalid argument

What is the problem?? Some in telnet??? I dont know..

Thanks!!
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 05:50 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0