[리눅스] How to Install python 3.7 on CentOS 7

How to Install python 3.7 on CentOS 7

Step 1 — Install Prerequisites

$ yum install gcc openssl-devel bzip2-devel libffi-devel

Step 2 — Download Python 3.x

$ cd /usr/src/
$ wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz
$ tar xvfz Python-3.7.2.tgz

Step 3 — Install Python3.x

$ cd Python-3.7.2/
$ ./configure --enable-optimizations
$ make altinstall

Step 4 — Using Python 3.x

$ ./python --version
Python 3.7.2

댓글 남기기

[원도우] chocolatey

The Package Manager for Windows Modern Software Automation

 

  1. First, ensure that you are using an administrative shell - you can also install as a non-admin, check out Non-Administrative Installation.
  2. Install with powershell.exe

    NOTE: Please inspect https://chocolatey.org/install.ps1 prior to running any of these scripts to ensure safety. We already know it's safe, but you should verify the security and contents of any script from the internet you are not familiar with. All of these scripts download a remote PowerShell script and execute it on your machine. We take security very seriously. Learn more about our security protocols.

    With PowerShell, you must ensure Get-ExecutionPolicy is not Restricted. We suggest using Bypass to bypass the policy to get things installed or AllSigned for quite a bit more security.

    • Run Get-ExecutionPolicy. If it returns Restricted, then run Set-ExecutionPolicy AllSigned or Set-ExecutionPolicy Bypass -Scope Process.

    Now run the following command:

    Copy

    Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

    to Clipboard

  3. Paste the copied text into your shell and press Enter.
  4. Wait a few seconds for the command to complete.
  5. If you don't see any errors, you are ready to use Chocolatey! Type choco or choco -? now, or see Getting Started for usage instructions.


https://chocolatey.org

 

Chocolatey - The package manager for Windows

Chocolatey is software management automation for Windows that wraps installers, executables, zips, and scripts into compiled packages. Chocolatey integrates w/SCCM, Puppet, Chef, etc. Chocolatey is trusted by businesses to manage software deployments.

chocolatey.org

 

댓글 남기기

[open source] knockpy : Subdomain Scanner

Knockpy – Open Source Subdomain Scanner Tool

 : Python tool designed to enumerate subdomains on a target domain

 

prerequisites
$ cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)

$ python --version
Python 2.7.5

$ pip -V
pip 19.1.1 from /usr/lib/python2.7/site-packages/pip (python 2.7)

----

dependencies
$ pip install dnspython

installing
$ git clone https://github.com/guelfoweb/knock.git knock_4.1.1
$ cd knock_4.1.1
$ python setup.py install

$ ./knockpy/knockpy.py -h
usage: knockpy [-h] [-v] [-w WORDLIST] [-r] [-c] [-f] [-j] domain

___________________________________________
knock subdomain scan
knockpy v.4.1.1
Author: Gianni 'guelfoweb' Amato
Github: https://github.com/guelfoweb/knock
___________________________________________

positional arguments:
  domain           target to scan, like domain.com

optional arguments:
  -h, --help       show this help message and exit
  -v, --version    show program's version number and exit
  -w WORDLIST      specific path to wordlist file
  -r, --resolve    resolve single ip or domain name
  -c, --csv        save output in csv
  -f, --csvfields  add fields name to the first row of csv output file
  -j, --json       export full report in JSON

example:
  knockpy domain.com
  knockpy domain.com -w wordlist.txt
  knockpy -r domain.com or IP
  knockpy -c domain.com
  knockpy -j domain.com

For virustotal subdomains support you can setting your API KEY in the config.json file.

$ ./knockpy/knockpy.py sangchul.kr


install knockpy

API Key : https://www.virustotal.com

$ cd knock

$ vim knockpy/config.json
{
"virustotal": ""
}

 

 

참고URL : https://manpages.debian.org/testing/knockpy/knockpy.1.en.html

'___기타' 카테고리의 다른 글

[open source] knockpy : Subdomain Scanner  (0) 2019.08.07
Let's Encrypt(certbot)  (0) 2019.06.11
[MAC] geoiplookup 명령어 설치  (0) 2018.09.07
[URL] Rackmonkey  (0) 2017.06.07
[ANSIBLE] 계정 생성 및 삭제  (0) 2017.04.25
[ANSIBLE] 일반 계정 생성  (0) 2017.04.25
댓글 남기기

[docker] docker login fails while docker-compose is installed on Ubuntu 18.04

docker login fail

$ docker login gitla.sangchul.kr:4567
Username: admin
Password:
Error saving credentials: error storing credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY`

config.json 파일 생성
$ vim ~/.docker/config.json
{
"auths": {
"gitlab.sangchul.kr": {
"auth": "YW50aTEzNdDY6cXVzdGtkY2pm"
}
},
"HttpHeaders": {
"User-Agent": "Docker-Client/18.09.6 (linux)"
}
}

댓글 남기기

[리눅스] parallel compression

pbzip2 : Parallel implementation of bzip2

 

https://zlib.net/pigz/

: A parallel implementation of gzip for modern multi-processor, multi-core machines

 

 

$ yum install -y pbzip2

 

$ tar --use-compress-prog=pbzip2 -cf file10g-pbzip2.tar.gz file_10GB

 

$ tar --use-compress-prog=pbzip2 -xf file10g-pbzip2.tar.gz

 

 

 

pigz : Parallel implementation of gzip

 

https://launchpad.net/pbzip2

: PBZIP2 is a parallel implementation of the bzip2 block-sorting file compressor that uses pthreads and achieves near-linear speedup on SMP machines. The output of this version is fully compatible with bzip2 v1.0.2 or newer (ie: anything compressed with pbzip2 can be decompressed with bzip2). PBZIP2 should work on any system that has a pthreads compatible C++ compiler (such as gcc).

 

 

$ yum install -y pigz

 

$ tar --use-compress-prog=pigz -cf file10g-pigz.tar.gz file_10GB

 

$ tar --use-compress-prog=pigz -xf file10g-pigz.tar.gz

댓글 남기기
◀ PREV 1234···132 NEXT ▶