블로그 이미지
Flying Mr.Cheon youGom

Recent Comment»

Recent Post»

Recent Trackback»

« 2025/5 »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

 
 

reverse shell ssh

보안 | 2023. 5. 14. 21:20 | Posted by youGom

not netcat, it is ssh

install openssh server

$ sudo apt install openssh-server

check status ssh

$ sudo systemctl status ssh

if not work it ssh

$ sudo systemctl enable ssh
$ sudo systemctl start ssh

 

access the target server from client, if you had key-file, to include -i option.

$ ssh -R server_port:localhost:client_port user@server_ip
$ ssh -nNT -o TCPKeepAlive=yes -R server_port:127.0.0.1:client_port user@server_ip

'보안' 카테고리의 다른 글

[CURL] linux에서 활용하기  (0) 2014.11.28
[보안/교육] 아카데미 사이트  (0) 2013.07.18
BackTrack5 한글 패치하기  (0) 2013.03.27
:

인터넷에 처음부터 하는 가이드는 많이 있는데

sagemaker를 쓰고 있는 상태에서 이 안에 있는 notebook에도 R을 쓸 수 있게하는 가이드가 없길래 메모함.

 

1.

sagemaker의 jupyterlab에서 terminal을 오픈한다.

 

2.

sudo yum -y install R

 

2-1.

다운로드 받을 서버를 선택해준다. korea도 보이긴하는데 귀찮아서.. 그냥 1번,  O-cloud를 선택함

 

3.

검색하면 흔히 나오는 아래 명령어들을 입력함

 

3-1.

R을 실행

$ > R

 

3-2.

R 커널 내에서 아래 명령어 실행해서 설치함

> install.packages('devtools')

> install.packages('RCurl')

> library(devtools)

> devtools::install_github('IRkernel/IRkernel')

> IRkernel::installspec(name = 'ir34', displayname = 'R 3.4.2') 

   ( 또는 IRkernel::installspec() )

 

* 내 경우에는 'devtools' 설치 때 에러가 떴는데, RCurl을 설치하고 난 후, 다시 설치해보니 정상 설치가 되었음

 

 

 

 

:

chmod, chown 파일/폴더 일괄 변경

보안/서버관리 | 2012. 1. 18. 23:15 | Posted by youGom

//파일만
#find ./ -type f -exec chmod -v 600 {} \;

 
//폴더만
#find ./ -type d -exec chmod -v 707 {} \;
 

//파일폴더전부
chmod -R 755 *

: