Ubuntu 기초 세팅 명령어 완전 정리

2023. 4. 14. 22:12·Tips

매번 도커파일 생성해서 우분투 컨테이너 만들기 귀찮으므로 여기에다 정리한다. (구글링으로 복붙한 도커파일은 최신 버전으로 작동 안해서 이렇게 작성한 이유가 크다..)

포너블 공부 때 내가 쓰는 툴 위주로 작성해놨다. github 링크가 날아가지 않는 이상 문제 없을 코드다.

 

python3(만 쓰는 사람) & gdb-peda를 쓰는 사람들은 따로 설정 안하고 그대로 복붙한 후, 우분투 버전만 수정해주면 문제 없이 사용할 수 있을 것이다.

FROM ubuntu:[원하는 우분투 버전]

ARG DEBIAN_FRONTEND=noninteractive
ENV TZ Asia/Seoul
ENV PYTHONIOENCODING UTF-8
ENV LC_CTYPE C.UTF-8

WORKDIR /root
RUN echo "Acquire::Check-Valid-Until \"false\";\nAcquire::Check-Date \"false\";" | cat > /etc/apt/apt.conf.d/10no--check-valid-until

RUN apt clean
RUN rm -rf /var/lib/apt/lists/*
RUN apt-get update --allow-releaseinfo-change
RUN apt-get install -y netcat

RUN apt update
RUN apt install -y curl git wget file zsh sudo vim libssl-dev libffi-dev 
RUN apt install -y build-essential libssl-dev libc6-i386 libc6-dbg gcc-multilib make gcc gdb 
RUN apt install -y git curl wget vim zsh gdb python3 python3-pip

RUN dpkg --add-architecture i386 &&\
       apt-get update
RUN apt-get install python3-dev ruby binutils-multiarch -y
RUN apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 ruby-full python3-dev python3-setuptools python3-capstone socat -y
RUN gem install one_gadget seccomp-tools

RUN python3 -m pip install --upgrade pip
RUN pip3 install unicorn
RUN pip3 install keystone-engine 
RUN pip3 install ropgadget

RUN pip3 install pwntools

RUN git clone https://github.com/longld/peda.git ~/peda
RUN echo "source ~/peda/peda.py" >> ~/.gdbinit

RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true
RUN mkdir -p "$HOME/.zsh"
RUN git clone https://github.com/sindresorhus/pure.git "$HOME/.zsh/pure"
RUN echo "fpath+=("$HOME/.zsh/pure")\nautoload -U promptinit; promptinit\nprompt pure" >> ~/.zshrc

RUN git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
RUN echo "source ./zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc

RUN git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
RUN echo "source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc
RUN echo "ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=111'" >> ~/.zshrc

RUN echo "syntax on\\nfiletype indent plugin on\\nlet python_version_2=1\\nlet python_highlight_all=1\\nset tabstop=8\\nset softtabstop=4\\nset autoindent\nset nu">>~/.vimrc
저작자표시 비영리 변경금지 (새창열림)
'Tips' 카테고리의 다른 글
  • Ubuntu 기초 셋팅 명령어 모음 ( 한 큐에 해결하기 )
  • (Cryptography) Python3 Sage 모듈 설치 & pwntools과 연동
  • 우분투 22.04 버전 apt-get update 에러 솔루션
  • [VMware] apt update 안될 때
Cronus
Cronus
Offensive Security Researcher
  • Cronus
    Cronus
    Striving to be the best.
    • 분류 전체보기 (251)
      • AboutMe (1)
      • Portfolio (1)
        • Things (1)
      • Bug Report (1)
      • 🚩 CTF (23)
        • Former Doc (9)
        • 2023 (9)
      • 💻 Security (5)
      • 🖌️ Theory (22)
        • WEB (9)
        • PWN (13)
      • 📄 Project (6)
        • Edu_Siri (6)
      • Dreamhack (156)
        • WEB (95)
        • PWN (41)
        • Crypto (14)
        • ETC (6)
      • Wargame (22)
        • HackCTF (22)
      • Bug Bounty (1)
        • Hacking Zone (1)
      • Tips (7)
      • Development (2)
        • Machine Learning & Deep Lea.. (1)
      • Offensive Tools (1)
  • 블로그 메뉴

    • 홈
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    RCE
    cache poisoning
    pwntools
    Crypto
    TsukuCTF2022
    Ubuntu 기초
    Deep learning
    Text Summarization
    cache
    TFCCTF2022
    Machine Learning
    bug hunter
    Remote Code Execution
    sqli
    justCTF
    bug report
    Ubuntu 기초 셋팅
    GPNCTF
    ubuntu 명령어
    python
  • 최근 댓글

  • 최근 글

Cronus
Ubuntu 기초 세팅 명령어 완전 정리
상단으로

티스토리툴바