블로그 이미지
Flying Mr.Cheon youGom

Recent Comment»

Recent Post»

Recent Trackback»

« 2024/4 »
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

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
:

note, pycurl install error

커리어 관리/프로젝트 흔적 | 2023. 5. 11. 23:16 | Posted by youGom

pycurl install error in python3.6

sudo apt-get install libpython3.6-dev
sudo apt install python-pycurl
sudo apt install libcurl4-gnutls-dev
sudo apt-get install python3.6-dev
sudo apt-get install libssl-dev libcurl4-openssl-dev

export PYCURL_SSL_LIBRARY=openssl
pip install --compile --install-option="--with-openssl" --no-cache-dir pycurl

 

import error - pycurl
error : ImportError: pycurl: libcurl link-time ssl backend (gnutls) is different from compile-time ssl backend (openssl)
reason: not installed openssl; libcurl4-openssl-dev

pip uninstall pycurl
sudo apt-get install libcurl4-openssl-dev
pip install --compile --install-option="--with-openssl" pycurl

 

'커리어 관리 > 프로젝트 흔적' 카테고리의 다른 글

[ 메모 ] 채팅 프로그램  (0) 2013.05.29
Rullet  (0) 2013.05.03
RF.plan  (0) 2013.03.26
:

Docker Configuration

서버/Infra | 2023. 5. 11. 17:04 | Posted by youGom

It is not typing any korean might be in ubuntu of the language problem on utf8.
This is contents only my log how to get checking docker default.
It's terrible to set the python version virutal environment up. this docker system would rather that?

This is default configuration method and summary; Docker Configurations

* Below links are almost entry point: https://docs.docker.com/language/python/build-images/

Contents.
1. Install Docker
    - The docker document site shows to install the docker-gui at first, but it should install the docker-cli in middle contents;
    ( docker-install[gui] - link , docker-cert[ca] - link , docker-install[cli] - link )
2. Docker run: image 'hello world'
    - It is very simple command like 'docker run docker-hello' for getting check or verify the docker-package.
3. Docker Image Pull: Python3.6 slim buster - (list)link
    - The docker document shows python 3.8, but trying to version of 3.6; python 3.6 image link
4. Docker Image Control: Flask 'hello world'
    - Build, Tag - link
    - Run, Stop, Remove, View List - link
    - Finally command: docker run -d -p 8000:5000 --name rest-server python_image
5. Docker Image Control: Mysql 'hello world', link
    - To meet some error; mysql-connector (had been installed by pip3 (python3.6))
    - To reset python version to 3.8 from 3.6, and to restart generating from 'python3 -m venv .venv' for the first time.
    - Getting Experience; docker network, volume and compose by yaml file; docker-compose.dev.yml
6. CI/CD: GitHub actions - link
    - Create workflow yaml file
7. Deploy: Azure, ECS, EKS - link
    - It would refer any page to be meet a environment of the infras, or the IaaS provider would provide us more information.

 

Notes.
1. Hope to use the docker command line without 'sudo ...' like 'sudo docker ...'
   $ sudo usermod -aG docker $USER
   - To run docker command without 'sudo' after logout, or 'sudo su -l $USER'

'서버 > Infra' 카테고리의 다른 글

[Infra] LoadBalancer Haproxy Install  (0) 2018.03.20
: