Sponsored Content
Full Discussion: How to hide login messages ?
Operating Systems Linux How to hide login messages ? Post 302497134 by Corona688 on Wednesday 16th of February 2011 12:31:59 PM
Old 02-16-2011
I don't see a way in my version. They're not login messages -- they're generated by the telnet binary itself, and printed to stdout, not stderr.

Perhaps telnet isn't the right tool for the job? If you're trying to script anything, netcat(nc) will save you lots of headaches over telnet because it never pretends to be a terminal... It just sends everything it has to send, receives until the other end closes, then quits. For instance:

Code:
$ echo "GET /" | nc yahoo.com 80
<!DOCTYPE html>
<html lang="en-US" class="y-fp-bg y-fp-pg-grad  bkt701">
<!-- m2 template 0 -->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    <title>Yahoo!</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="description" content="...">
    <meta name="keywords" content="...">
...
</html>
<!-- bid=701 -->
<!-- sid=2023538075 -->

<!-- myproperty:myservice-us:0:Success -->
<!-- w24.fp.sp2.yahoo.com uncompressed/chunked Wed Feb 16 09:33:25 PST 2011 -->
$


Last edited by Corona688; 02-16-2011 at 01:37 PM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Hide Passwords

Is there a way not to display the password in the sys out when your korn shell script logs into sqlplus? (3 Replies)
Discussion started by: lesstjm
3 Replies

2. Shell Programming and Scripting

Hide a script ?

Hi all, i have a perl script for my users to run. My sys admin created an account for the users to log in and execute the script. They just type "perl myscript.pl" at the unix prompt to run it. Is there any way that i can hide my script? ,ie, do not allow my users to view the script. either... (5 Replies)
Discussion started by: new2ss
5 Replies

3. Shell Programming and Scripting

Want to hide password

All, In my script I am calling another script.. in that script I need to enter a password. Problem is that everyone is able to see the password when I enter that. Is there any way that when i enter that password it should not display or may look like *******. Or if there any other way that I... (1 Reply)
Discussion started by: arpitk
1 Replies

4. UNIX for Advanced & Expert Users

How to Create Banner/Login Messages in Solaris.

Hi, I have been trying to create a banner/login message (something for displaying the usage policy etc) to appear while I login using telnet/FTP to any Solaris (pref. Solaris9) machine. I have tried using /etc/issue and /etc/motd files. Both do not solve my need. In that, /etc/issue displays... (8 Replies)
Discussion started by: mahatma
8 Replies

5. Shell Programming and Scripting

How to hide folders

hello everybody, i would like to hide visibility of the folders , i.e. not to giving any physically visibility to any users . Is there any way to do it other than changing the permission and adding "." post folder name . by changing the permission , we cann't do any activity , but have... (1 Reply)
Discussion started by: manas_ranjan
1 Replies

6. Shell Programming and Scripting

Hide process

Hi friends, I want (a C++ code) to hide process in kernel 2.6, I don't want monitoring even in /proc. please help me. Regards, Eilya (3 Replies)
Discussion started by: Eilya
3 Replies

7. Shell Programming and Scripting

Help to hide shell terminal and run prompt program after ssh login for specified user

Hey guys, I have some task from my office to lock user on the specified directory after the user logged on using ssh. And then run prompt program to fill the required information. Yeah, just like an ATM system. My question: How could I do those?? AFAIK I have to edit the ~./bashrc. But the... (1 Reply)
Discussion started by: franzramadhan
1 Replies

8. Solaris

Login error in /var/adm/messages

I had an issue with ssh on one of my servers and noticed the following errors, listed below. Errors in /var/adm/messagessshd lastlog_perform_login: Couln't stat /var/adm/lastlog: permission denied sshd lastlog_openseek: /var/adm/lastlog is not a file or directory! automountd self_check:... (0 Replies)
Discussion started by: bitlord
0 Replies

9. Programming

How to hide from UNIX strings - obfuscate or hide a literal or constant?

Hi, I need to somehow pipe the password to a command and run some SQL, for example, something like echo $password | sqlplus -s system @query01.sql To make it not so obvious, I decided to try out writing a small C program that basically just do echo $password. So now I just do x9.out | sqlplus... (8 Replies)
Discussion started by: newbie_01
8 Replies

10. UNIX for Advanced & Expert Users

How do I remove or hide SunOS version/release from remote login prompt?

For any SunOS 5.XX release, it appears prior to the "login:" prompt (as if a "uname" command is run). Would anyone know where that initial display of SunOS release comes from upon a remote login and how I can stop if from displaying? Thank you (4 Replies)
Discussion started by: ssid61
4 Replies
telnetrc(4)							   File Formats 						       telnetrc(4)

NAME
telnetrc - file for telnet default options DESCRIPTION
The .telnetrc file contains commands that are executed when a connection is established on a per-host basis. Each line in the file con- tains a host name, one or more spaces or tabs, and a telnet(1) command. The host name, DEFAULT, matches all hosts. Lines beginning with the pound sign (#) are interpreted as comments and therefore ignored. telnet(1) commands are case-insensitive to the contents of the .telnetrc file. The .telnetrc file is retrieved from each user's HOME directory. EXAMPLES
Example 1: A sample file. In the following example, a .telnetrc file executes the telnet(1) command, toggle: weirdhost toggle crmod # Always export $PRINTER DEFAULT environ export PRINTER The lines in this file indicate that the toggle argument crmod, whose default value is "off" (or FALSE), should be enabled when connecting to the system weirdhost. In addition, the value of the environment variable PRINTER should be exported to all systems. In this case, the DEFAULT keyword is used in place of the host name. FILES
$HOME/.telnetrc SEE ALSO
telnet(1), in.telnetd(1M), environ(5) SunOS 5.10 9 Jan 1998 telnetrc(4)
All times are GMT -4. The time now is 10:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy