python pip install 시 error: externally-managed-environment 에러 해결방법
" " 리눅스 또는 맥북의 python에서 pip install 으로 설치하려고 하면 error: externally-managed-environment 에러가 나는 경우가 있다. 이럴때는 아래와 같이 하면 된다.
읽어보기 →Python, Java, JavaScript, PHP, Database 등 소프트웨어 개발 과정에서 사용한 기술과 코드, 오류 해결 방법을 기록합니다.
" " 리눅스 또는 맥북의 python에서 pip install 으로 설치하려고 하면 error: externally-managed-environment 에러가 나는 경우가 있다. 이럴때는 아래와 같이 하면 된다.
읽어보기 →" " docker db 활용 1. docker 설치 https://www.docker.com/ 2. db 이미지 다운로드 docker pull postgres docker pull mariadb docker pull mysql docker pull sath89/oracle-xe-11g 3. 다운 받은 이미지 확인 $ docker images REPOSITORY TAG IMAGE ID CREATED SIZE postgres latest 45e33d1af449…
읽어보기 →" " AES 방식(Key) var key = 'this is password key'; var input = 'This_is_Password!'; var cipher = crypto.createCipher('aes192', key); cipher.update(input, 'utf8', 'base64'); var cipheredOutput = cipher.final('base64'); var decipher = crypto.createDecipher('aes192', key); decipher.update(cipheredOutput, 'base64', 'utf8'); var decipheredOutput = decipher.final('utf8'); console.log('original string: '…
읽어보기 →[FHZ]Level20 id : level20 pw : we are just regular guys [level20@ftz level20]$ ls attackme hint public_html tmp [level20@ftz level20]$ cat hint #include <stdio.h> main(int argc,char **argv) { char bleh[80]; setreuid(3101,3101); fgets(bleh,79,stdin); printf(bleh); } [level20@ftz level20]$ 드디어 마지막 문제다.. fgets으로 입력받은…
읽어보기 →[FHZ]Level18 id : level18 pw : why did you do it [level18@ftz level18]$ ls attackme hint public_html tmp [level18@ftz level18]$ cat hint #include <stdio.h> #include <sys/time.h> #include <sys/types.h> #include <unistd.h> void shellout(void); int main() { char string[100]; int check; int x…
읽어보기 →[FHZ]Level17 id : level17 pw : king poetic [level17@ftz level17]$ ls attackme hint public_html tmp [level17@ftz level17]$ cat hint #include <stdio.h> void printit() { printf("Hello there!\n"); } main() { int crap; void (*call)()=printit; char buf[20]; fgets(buf,48,stdin); setreuid(3098,3098); call(); } 이번에도 level16과…
읽어보기 →[FHZ]Level16 id : level16 pw : about to cause mass [level16@ftz level16]$ ls attackme attackme.c hint public_html tmp [level16@ftz level16]$ cat hint #include <stdio.h> void shell() { setreuid(3097,3097); system("/bin/sh"); } void printit() { printf("Hello there!\n"); } main() { int crap; void…
읽어보기 →[FHZ]Level15 id : level15 pw : guess what [level15@ftz level15]$ ls attackme hint public_html tmp [level15@ftz level15]$ cat hint #include <stdio.h> main() { int crap; int *check; char buf[20]; fgets(buf,45,stdin); if (*check==0xdeadbeef) { setreuid(3096,3096); system("/bin/sh"); } } 문제는 level14와 동일하다. 단,…
읽어보기 →[FHZ]Level14 id : level14 pw : what that nigga want? [level14@ftz level14]$ ll total 28 -rwsr-x--- 1 level15 level14 13801 Dec 10 2002 attackme -rw-r----- 1 root level14 346 Dec 10 2002 hint drwxr-xr-x 2 root level14 4096 Feb 24 2002…
읽어보기 →[FHZ]Level13 id : level13 pw : have no clue [level13@ftz level13]$ ll total 28 -rwsr-x--- 1 level14 level13 13953 Mar 8 2003 attackme -rw-r----- 1 root level13 258 Mar 8 2003 hint drwxr-xr-x 2 root level13 4096 Feb 24 2002 public_html…
읽어보기 →http://score.quals.seccon.jp/ 올해 처음 Defcon qualifying 이 되었다는데.. 문체를 풀어보니 나름 신선하고 재미있었다. (고득점 문제는 하나도 못풀었다) 하루전날 CTF가 있는 줄 알고 아무 준비없이 등록하고 편한 마음으로 풀어봤다. 2014.12.06-07동안 진행했는데 실제 집중해서 푼시간은 5시간이 채 안되는 듯..ㅠ 암튼 결과는 7문제 풀고 800 점…
읽어보기 →[OverTheWire] Natas Level26 http://natas26.natas.labs.overthewire.org/ id : natas26 pw : oGgWAJ7zcGT28vYazGo4rkhOPDhBu34T (x1, y1)에서 (x2, y2) 으로 직선을 긋는 프로그램이다.. 소스를 보자.. <?php // sry, this is ugly as hell. // cheers kaliman ;) // - morla class Logger{ private $logFile; private $initMsg; private…
읽어보기 →