디렉토리에서
x -> 접근
w -> 파일 생성
r -> 디렉토리 목록 조회
-----------------------------
비밀번호 없이 소유자 권한으로 상승
setuid(0);
setgid(0);
system("/bin/bash");
printf("bash end");
return 0;
}
chmod 4755 backtest.c
find / -perm -4000 -user root
find / -user monkey -perm -4000 2> /dev/null
find / -group monkey -perm -4000 -size 5000c 2> /dev/null
--------------------
- vi
:!pwd
:!/bin/bash
---------------
jobs
bg
fg
ctrl + z
ctrl + c
ping localhost &
ping localhost > ./1 &
tail -f 1
find / -name pass* > /dev/null
find / -name pass* > /dev/null & //프로세스 완료시 done 출력
ps -ef
실행자 /pid(프로세스 id) / ppid (부모프로세스) /...
/?(자동적으로 실행, 누가 실행했는지 모른다는 의미) tty (제어하는 터미널)/ (파일이름)
ps -ef | grep cat
맨마지막거 제외하고 보면 됨
ps -aux
... /... /STAT
R - 현재 동작중
S - 잠깐 중지
T - 시그널로 정지 된 상태
X - 완전히 죽어있는 상태 (좀비)
Z - 죽어있는 좀비 프로세스
+ - foreground 로 실행되고 있는 상태
'Linux' 카테고리의 다른 글
Questions and I should find parts where need to be corrected (0) | 2014.08.14 |
---|---|
noticing who is connected inside and how would I kill them using the commands (0) | 2014.08.14 |
commands for checking and modifying files and condition (0) | 2014.08.12 |
permission (0) | 2014.08.11 |
controlling VI and modifying passwd, shadow, /skel (0) | 2014.08.01 |