반응형

 

우분투 MYSQL +9시간 UTC 변경하기

 

 

 

가끔 기억이 안나서 메모합니다!

방법은 간단합니다.

 

nano /etc/mysql/my.cnf

로 접속한 후 아래 빨간줄 추가 후

service mysql restart


!includedir /etc/mysql/conf.d/

!includedir /etc/mysql/mysql.conf.d/

 

[client]

default-character-set=utf8

[mysql]

default-character-set=utf8

[mysqld]

collation-server = utf8_unicode_ci

init-connect='SET NAMES utf8'

character-set-server = utf8

!includedir /etc/mysql/conf.d/

!includedir /etc/mysql/mysql.conf.d/

default-time-zone = "+09:00"

반응형

'IT > Linux' 카테고리의 다른 글

Ubuntu에 Vmware-Tools 설치 명령어  (0) 2020.04.28
Backtrack4 Exploit-DB Updates  (0) 2010.06.07
Vmware에서의 Backtrack4 SSH 데몬 실행  (0) 2010.06.07
Backtrack4 Metasploit  (0) 2010.06.07
리눅스에서 콘솔모드로 부팅하는 방법  (0) 2010.03.02
블로그 이미지

NINEx

일상과 IT의 만남

,
반응형

 

 

 

갑자기 명령어가 기억 안나서 기록

 

명령어 : sudo apt install open-vm-tools-desktop 

OS버전 : ubuntu 18.04, ubuntu 20.04

------------------------------------------------------

 

root@ubuntu:~/r# sudo apt install open-vm-tools-desktop
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
ethtool libmspack0 libxmlsec1-openssl open-vm-tools zerofree
Suggested packages:
cloud-init
Recommended packages:
xserver-xorg-input-vmmouse
The following NEW packages will be installed:
ethtool libmspack0 libxmlsec1-openssl open-vm-tools open-vm-tools-desktop
zerofree
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 943 kB of archives.
After this operation, 3,732 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://us.archive.ubuntu.com/ubuntu focal/main amd64 ethtool amd64 1:5.4-1 [134 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libmspack0 amd64 0.10.1-2 [38.0 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal/main amd64 libxmlsec1-openssl amd64 1.2.28-2 [75.9 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu focal/main amd64 open-vm-tools amd64 2:11.0.5-4 [546 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu focal/main amd64 open-vm-tools-desktop amd64 2:11.0.5-4 [140 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu focal/main amd64 zerofree amd64 1.1.1-1 [8,520 B]
Fetched 943 kB in 5s (208 kB/s)
Selecting previously unselected package ethtool.
(Reading database ... 150476 files and directories currently installed.)
Preparing to unpack .../0-ethtool_1%3a5.4-1_amd64.deb ...
Unpacking ethtool (1:5.4-1) ...
Selecting previously unselected package libmspack0:amd64.
Preparing to unpack .../1-libmspack0_0.10.1-2_amd64.deb ...
Unpacking libmspack0:amd64 (0.10.1-2) ...
Selecting previously unselected package libxmlsec1-openssl:amd64.
Preparing to unpack .../2-libxmlsec1-openssl_1.2.28-2_amd64.deb ...
Unpacking libxmlsec1-openssl:amd64 (1.2.28-2) ...
Selecting previously unselected package open-vm-tools.
Preparing to unpack .../3-open-vm-tools_2%3a11.0.5-4_amd64.deb ...
Unpacking open-vm-tools (2:11.0.5-4) ...
Selecting previously unselected package open-vm-tools-desktop.
Preparing to unpack .../4-open-vm-tools-desktop_2%3a11.0.5-4_amd64.deb ...
Unpacking open-vm-tools-desktop (2:11.0.5-4) ...
Selecting previously unselected package zerofree.
Preparing to unpack .../5-zerofree_1.1.1-1_amd64.deb ...
Unpacking zerofree (1.1.1-1) ...
Setting up zerofree (1.1.1-1) ...
Setting up libxmlsec1-openssl:amd64 (1.2.28-2) ...
Setting up libmspack0:amd64 (0.10.1-2) ...
Setting up open-vm-tools (2:11.0.5-4) ...
Created symlink /etc/systemd/system/vmtoolsd.service → /lib/systemd/system/open
-vm-tools.service.
Created symlink /etc/systemd/system/multi-user.target.wants/open-vm-tools.servi
ce → /lib/systemd/system/open-vm-tools.service.
Created symlink /etc/systemd/system/open-vm-tools.service.requires/vgauth.servi
ce → /lib/systemd/system/vgauth.service.
Setting up ethtool (1:5.4-1) ...
Setting up open-vm-tools-desktop (2:11.0.5-4) ...
Created symlink /etc/systemd/system/multi-user.target.wants/run-vmblock\x2dfuse
.mount → /lib/systemd/system/run-vmblock\x2dfuse.mount.
Processing triggers for libc-bin (2.31-0ubuntu9) ...
Processing triggers for systemd (245.4-4ubuntu3) ...
Processing triggers for man-db (2.9.1-1) ...
root@ubuntu:~/

반응형

'IT > Linux' 카테고리의 다른 글

우분투 MYSQL +9시간 UTC 변경하기  (0) 2020.07.29
Backtrack4 Exploit-DB Updates  (0) 2010.06.07
Vmware에서의 Backtrack4 SSH 데몬 실행  (0) 2010.06.07
Backtrack4 Metasploit  (0) 2010.06.07
리눅스에서 콘솔모드로 부팅하는 방법  (0) 2010.03.02
블로그 이미지

NINEx

일상과 IT의 만남

,
반응형

   

 

Lots of new updates in the exploit-db arena. Barabas whipped up a quick browser search bar plugin. See how to get it installed here.

We got a massive CVE / OSVDB entry update from Steve Tornio which was added to our DB. Our "perfect" exploit template now has links to the exploit code, vulnerable app , CVE and OSVDB entries. See this example. You can now search for exploits via CVE or OSVDB.

We've added a new column to the database – "V". We attempt to verify submitted code in a testing environment. Exploits that we manage to verify will be marked accordingly. It will take us a LONG time to get the list updated, bear with us.

The Exploit Database can now be downloaded via SVN. We figured it would be easier to download and track exploits this way, rather than re-downloading the whole archive. We will be adding the exploit-db archive as a package in BackTrack4, but for now you can:

   

root@bt4:# cd /pentest/exploits/

root@bt4:# svn co svn://devel.offensive-security.com/exploitdb

원본 위치 <http://www.offensive-security.com/backtrack/exploit-db-updates/>

반응형
블로그 이미지

NINEx

일상과 IT의 만남

,
반응형

#startx -> X-window로 접속(안해도 됨)

   

Xwindow화면

   

#ifconfig -> 현재 IP설정 확인

   

#start-network를 통해 network 서비스 실행

   

#setup-sshd 명령어로 ssh데몬 자동 설정

#ifconfig 명령어 다시 쳐보면 IP가 설정된 것을 확인할 수 있다. 그리고 ssh서비스도 실행

된다. 혹시 안되면 #stop-sshd로 데몬을 내리고 #start-sshd 명령어로 재시작 한다

   

#X-window에서 명령어 치기 싫으면 아래와 같이 메뉴를 통해서도 가능하다.

반응형

'IT > Linux' 카테고리의 다른 글

Ubuntu에 Vmware-Tools 설치 명령어  (0) 2020.04.28
Backtrack4 Exploit-DB Updates  (0) 2010.06.07
Backtrack4 Metasploit  (0) 2010.06.07
리눅스에서 콘솔모드로 부팅하는 방법  (0) 2010.03.02
페도라8에서 경고음 제거하기  (0) 2010.03.02
블로그 이미지

NINEx

일상과 IT의 만남

,

Backtrack4 Metasploit

IT/Linux 2010. 6. 7. 16:40
반응형

BackTrack includes the Metasploit Framework, but not always the latest version. To install the latest version of Metasploit in BackTrack:

$ sudo bash
# cd /pentest/svn
# rm -rf framework3
# svn co https://www.metasploit.com/svn/framework3/trunk framework3

In order to use the raw socket modules, the pcaprub extension must be installed:

# cd /pentest/svn/framework3/external/pcaprub
# ruby extconf.rb
# make && make install

In order to use the WiFi modues, the lorcon2 extension must be installed:

# cd /pentest/svn
# svn co https://802.11ninja.net/svn/lorcon/trunk lorcon2
# cd lorcon2
# ./configure --prefix=/usr && make && make install
# cd /pentest/svn/framework3/external/ruby-lorcon2
# ruby extconf.rb
# make && make install

Once a fresh Subversion snapshot has been installed, it can be updated with the following command:

# svn update /pentest/svn/framework3/

   

원본 위치 <http://www.metasploit.com/redmine/projects/framework/wiki/Install_BackTrack>

   

반응형
블로그 이미지

NINEx

일상과 IT의 만남

,
반응형

X-Windows로 부팅되는 기본설정인 리눅스에서

콘솔모드로 부팅하는 방법

1)  vi /etc/inittab     -> vi 편집기를 이용하여 inittab에 들어간다.

2)  id:5:initdefault     -> 이 부분을 id:3:initdefault으로 바꿔준다.

3의 의미는??

---------------------------------------------

   0 - halt (Do NOT set initdefault to this)
   1 - 안전모드 부팅(싱글유저)
   2 - 네트워크 지원안되는 콘솔모드
   3 - 콘솔모드
   4 - 사용안함
   5 - Xwindows로 부팅
   6 - 리붓

---------------------------------------------

즉, 3은 콘솔모드를 뜻한다.

반응형

'IT > Linux' 카테고리의 다른 글

Vmware에서의 Backtrack4 SSH 데몬 실행  (0) 2010.06.07
Backtrack4 Metasploit  (0) 2010.06.07
페도라8에서 경고음 제거하기  (0) 2010.03.02
vi편집기 set설정하는 vimrc 파일 만들기  (0) 2010.03.02
리눅스 xinetd 설치  (0) 2010.03.02
블로그 이미지

NINEx

일상과 IT의 만남

,
반응형

/usr/bin/setterm -blength 0

입력하면 됨.

==========================================

재부팅 했을 때 다시 설정 전으로 돌아갔다면

/root/.bashrc 파일에

/usr/bin/setterm -blength 0

명령어를 추가합니다.

반응형
블로그 이미지

NINEx

일상과 IT의 만남

,
반응형

자신의 홈 폴더(cd ~  명령어 치면 이동하는 곳)에

vi .vimrc   명령어를 입력해서 아래에 필요한 옵션을 입력한 후 저장한다.

============================================================================

set tabstop=4
"Tab을 눌렀을 때 4칸으로 이동하도록 한다.
set cindent
"C언어 스타일의 들여쓰기를 사용한다.
"set cin <약어>
"set nocin 
"들여쓰기 사용을 하지 않는다.
set autoindent   
"자동으로 들여쓰기를 한다.
set smartindent   
"좀더 똑똑한 들여쓰기 옵션이다.
set background=dark   
"화면배경을 좀더 어둡게 한다.
"set background=light
"화면배경을 밝게 한다.
set number   
"행번호를 보여준다.
"set nu <약어>
"set nonu
"행번호를 보이지 않게 한다.
set visualbell   
"'삐'경고음 대신 화면을 번쩍인다.
set ruler   
"화면 우측하단에 (행,열) 번호를 보여준다.
set nowrapscan   
"단어 검색시 문서 처음으로 돌아가지 않는다.
set nobackup
"백업 파일을 생성하지 않는다.
"set backup
"백업 파일을 생성한다. ex) 원본:test.c 백업파일:test.c-
set hlsearch
"검색어 강조기능을 사용한다.
"set nohls
"검색어 강조기능을 사용하지 않는다.
syntax on
"구문강조 기능을 사용한다.
filetype on
"파일종류에 따른 구문강조를 한다.

============================================================================

반응형
블로그 이미지

NINEx

일상과 IT의 만남

,

리눅스 xinetd 설치

IT/Linux 2010. 3. 2. 03:10
반응형

wget http://ftp.linux.co.kr/pub/redhat/9/RPMS/xinetd-2.3.10-6.i386.rpm

(위 링크는 http://ftp.linux.co.kr/pub/redhat/9/RPMS/ 에 있는 xinetd 파일입니다)

rpm -ivh --nodeps xinetd-2.3.10-6.i386.rpm
service xinetd start

==========================================================================

telnet이 설치 안되었더라도 위와 같은 방법으로 센스있게 설치~

반응형
블로그 이미지

NINEx

일상과 IT의 만남

,
반응형

vi /etc/ssh/sshd_config  들어가서

#Port 22  를 # 지우고 Port 변경할포트로 고치고 나온다.

vi /etc/ssh/ssh_config  에서도 마찬가지로 한다.

vi /etc/services에 들어가서
22/tcp
22/udp

라고 적혀있는곳에 22를 변경할 포트로 바꾸고 저장하고 나온다.

데몬 재시작
service xinetd restart
service sshd restart

===================================================

telnet server 포트 변경은
vi /etc/services
에 들어가서
9999/tcp
9999/udp

로 바꿔주면 된다.

service xinetd restart

반응형
블로그 이미지

NINEx

일상과 IT의 만남

,
-->