텔넷접속을 할려고 하는데..암거두 안나옵니다 ㅡ.ㅡ;;

maylinux의 이미지

아무래도..크래킹을 당한것 같군여..

서버에 텔넷접속할려고하는데..

login:

이 프롬프트가 안나옵니다 ㅡ.ㅡ;;
그대로 정지상태 ...

그래서, ssh 로(아이디와 비번 저장되서 자동접속되는..)
접속했는데.. 접속되었다는 메세지는 나오는데

쉘이 안나옵니다 ㅡ.ㅡ;;

명령어를 넣어봐도, 화면에는 나오지만 실행되는 모습은 없습니다.

그런데, ftp 등은 잘 접속됩니다.
아무래도 쉘이 전혀 작동이 안되는듯 싶습니다..

참고로, 환경은.. 레드핫 7.2 영문판 입니다.

쉘이 안보이니..정말 막막합니다 ...쩝
안보이는 쉘에서 아무리 명령어를 넣어도, 작동이 되지 않습니다.
(ftp 에서는 잘 되지만....ftp 에서 변경된 모습이 보이지 않으니 쉘이 전혀 작동이 되지 않은것 같습니다..)

이 상황을... 어떻게 헤쳐나가야 할지 막막합니다..

재설치만은 피하고 싶습니다......

codebank의 이미지

몇몇 이유로 화면에 문자가 출력되지 않는경우가 있습니다.
첫번째는 /etc/DIR_COLORS의 값들을 전부 한가지로 통일시켜 버리는 경우입니다.
즉, 화면 바탕이 검은색일때 모든 색들을 검은색에 맞춰버리면 화면에 아무것도
표시되지 않게 하는 방법이 있죠.
이럴경우에는 일단 login을 정상적으로하고나서 sh만치면 표준쉘이 기동됩니다.
이상태에서 DIR_COLORS의 값들을 원하는 형태로 바꾸고 다시 로그인을 하면
글자가 보입니다.
아래는 현재 시스템에 기록되어있는 /etc/DIR_COLORS입니다.

Quote:

# Configuration file for the color ls utility
# This file goes in the /etc directory, and must be world readable.
# You can copy this file to .dir_colors in your $HOME directory to override
# the system defaults.

# COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not
# pipes. 'all' adds color characters to all output. 'none' shuts colorization
# off.
COLOR tty

# Extra command line options for ls go here.
# Basically these ones are:
# -F = show '/' for dirs, '*' for executables, etc.
# -T 0 = don't trust tab spacing when formatting ls output.
OPTIONS -F -T 0

# Below, there should be one TERM entry for each termtype that is colorizable
TERM linux
TERM console
TERM con132x25
TERM con132x30
TERM con132x43
TERM con132x60
TERM con80x25
TERM con80x28
TERM con80x30
TERM con80x43
TERM con80x50
TERM con80x60
TERM cons25
TERM xterm
TERM rxvt
TERM xterm-color
TERM color-xterm
TERM vt100
TERM dtterm
TERM color_xterm
TERM ansi
TERM screen

# EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output)
EIGHTBIT 1

# Below are the color init strings for the basic file types. A color init
# string consists of one or more of the following numeric codes:
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
NORMAL 00 # global default, although everything should be something.
FILE 00 # normal file
DIR 01;34 # directory
LINK 01;36 # symbolic link
FIFO 40;33 # pipe
SOCK 01;35 # socket
BLK 40;33;01 # block device driver
CHR 40;33;01 # character device driver
ORPHAN 01;05;37;41 # orphaned syminks
MISSING 01;05;37;41 # ... and the files they point to

# This is for files with execute permission:
EXEC 01;32

# List any file extensions like '.gz' or '.tar' that you would like ls
# to colorize below. Put the extension, a space, and the color init string.
# (and any comments you want to add after a '#')
.cmd 01;32 # executables (bright green)
.exe 01;32
.com 01;32
.btm 01;32
.bat 01;32
.sh 01;32
.csh 01;32
.tar 01;31 # archives or compressed (bright red)
.tgz 01;31
.arj 01;31
.taz 01;31
.lzh 01;31
.zip 01;31
.z 01;31
.Z 01;31
.gz 01;31
.bz2 01;31
.bz 01;31
.tz 01;31
.rpm 01;31
.cpio 01;31
.jpg 01;35 # image formats
.gif 01;35
.bmp 01;35
.xbm 01;35
.xpm 01;35
.png 01;35
.tif 01;35

두번째 경우는 로그인 쉘 자체를 바꿔버리는 경우가 있습니다.
이것은 telnet 프로그램을 바꿔치기 함으로써 가능한데 xinetd 을 이용하는경우라면
/etc/xinetd.d/telnet 에 지정되어있는 server의 파일을 바꿔치기 함으로써
접속자가 원하지않는 다른 프로그램으로 접속하도록 유도하는 경우가 있습니다.
원래 xinetd.d/telnet에 있는 내용은

Quote:

# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}

입니다. 악의가 없는 사람이라면 /usr/sbin/in.telnetd 이 다른이름으로 되어
있을 것이고 만일 악의를 가지고 접속을 했다면 저 파일자체가 다른 파일로 대체
되어있을 수도 있습니다.
이럴때는 배포판 CD에 해당 파일만을 다시 설치해 주면 됩니다.
어차피 외부에서 접속하여 작업이 불가능한 경우라면 서버부팅시에 linux single로
작업을 하는것이 편리할겁니다.

------------------------------
좋은 하루 되세요.

maylinux의 이미지

답변 감사합니다..
우선은 위와 같은 문제는 아닌것 같습니다.

잠정적 결론은.. 쉘에 관련된 명령어가 전혀 안 먹힌다..입니다.

일예로, php 게시판에 파일을 올리면
mkdir 나 chmod 는 php 자체 함수로 되기 때문에 잘 됩니다만..

exec 로 실행되는 명령어의 경우 전혀 안됩니다.
(php 함수로, 셀명령어 실행하는 함수)

그래서, 자료올리기위해서 파일을 올리면, 디렉토리만 달랑 만들어져있고,
파일은 올라가지 못하고 있습니다.

ftp 에서도.. mkdir 같은 기본명령어는 먹는데..
ls 를 입력하면
Illegal PORT command
가 뜨면서 종료됩니다..

아무래도, 쉘에서 해석하는 명령어가 전혀 실행이 안되는것 같습니다...

그래도, root 로 ftp 로그인이 가능하니, 파일을 교체는 할수 있습니다..

과연 이런 상황일때 어떻게 해야 될지, 파일을 전부 교체하다가는
파일이 맞지 않아서 많은 오류가 생길것 같아서, 교체도 못하고 있습니다.

현재 의심나는 넘만 하나씩 백업하면서 교체는 해보고 있지만..
막막하기만 합니다..

아바타 제작기간~~ 무려 5초!!!

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.