정보기술

Go Language Install - Windows

1. Download and install from https://golang.org/dl/ 2. Creating a work folder (e.g. d: \ source \ go) 3. Create BIN, PKG, SRC folder at the bottom 4. Windows Control Panel-> System-> Advanced System Settings-> Environment Variables 5. Input to GOPATH in a user variable group 6. Enter GOPATH in the variable name 7. Input Task Folder in Variable values ​​(e.g. d: \ source \ go) 8....

Find an IP access from AWS (PHP)

When you use the Amazon server, if you get a server IP, the private IP is output. So I made it to save the official IP. <? if (in_array (Substr ($ _ Server ['Server_addr']], 0, 3), array('172'))) if(strrpos(gethostname(), '.compute.internal')!==false) $_SERVER['SERVER_ADDR'] = file_get_contents('http://169.254.169.254/latest/meta-data/public-ipv4'); echo $_SERVER['SERVER_ADDR']; ?>

Web hacking, backdoor dangerous code detection plug -in

This is a plug -in made to easily find a backdoor (PHP) installed for server hacking. Find a file that uses a function that can be exploited in PHP and inform you by e -mail. WordPress, Gnuboard 5 can be easily installed and used. If you first activate it, you will be inspected as a whole, and if you find a suspicious file every hour, we will inform you by administrator e -mail. How to use Download the plug -in for that solution. The file downloaded to the folder below ...

Registry Monitoring (Delphi)

How to use Procedure RegistryMonitor (Rootkey: hKey; Key: String; Proc: Tproc; WatchSub: boolean); begin TTHREAD.CREATEANYNYMOUSTHREAD (Procedure var Reg: Tregistry; Event: Cardinal; begin Reg: = trrewistry.create; Reg.rootkey: = rootKey; if reg.openkeyreadonly (key) begin Event: = Createevent (NIL, FALSE, FALSE, NIL); if event> 0 then begin while true do begin RegNotifychandureKeyvalue (reg.currentkey, watchsub, reg_notify_Change_last_set, event, true); if waitForsingleObject (event, infinite) = wait_object_0 the tthread.synchronize (TTHREAD.CURENTHREAD, Procedure Begin Proc End); End; End; End; Reg.Free; end) .start; End; // Proc: Enter command // WatchSub: Subside monitoring ...

Installation and use of morphological analysis (PHP)

Installation Environment: Centos7 Basic, php7 Yum Install GCC-C ++ Java-1.7.0-OPENJDK-Devel Python-Devel ZLIB-Devel OpenSSL-Devel Git-Y wget https://www.python.org/ftp/python/3.6.1/python-3.6.1.tgz TAR XF Python-3.* CD Python-3.* ./configure make Make Altinstall pip3.6 Install jpype1-Py3 PIP3.6 Install Konlpy CD .. wget https://bitbucket.org/eunjeon/mecab-ko/downloads/mecab-0.996-ko-0.2.tar.gz TAR ZXFV MECAB-0.996-KO-0.2.2.tar.gz CD Mecab-0.996-KO-0.9.2 ./configure make Make Install CD .. wget https://bitbucket.org/eunjeon/mecab-ko-dic/downloads/mecab-ko-dic-2.0.1-20150920.tar.gz TAR ZXFV MECAB-KO-DIC-2.0.1-20150920.tar.gz CD MECAB-KO-DIC-2.0.1-20150920 ./autogen.sh ./configure make Make Install CD/USR/Local/SRC/ git clone https://github.com/rsky/php-mecab.git CD/USR/LOCAL/SRC/PHP-MECAB/MECAB phpize ./configure --with-PHP-config =/usr/bin/php-config --with-mecab =/usr/local/bin/mecab-config make make test Make Install Echo "Extension = mecab.so"> /etc/php.d/mecab.ini Systemctl Restart httpd.service PHP ...