정보기술

Installing Go Language - Windows

1. Download and install from https://golang.org/dl/ 2. Create a working folder (e.g., d:\source\Go) 3. Create subfolders: bin, pkg, src 4. Windows Control Panel -> System -> Advanced system settings -> Environment Variables 5. In the User variables section, enter the working folder for GOPATH 6. Set the variable name as GOPATH 7. Set the variable...

Getting Public IP Address from AWS (PHP)

When using Amazon servers, the server IP displayed is typically a private IP. So, I created this script to fetch the public IP address. <? 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 Risk Code Detection Plugin

This plugin is designed to easily find backdoors (PHP) secretly installed for server hacking. It locates files that use functions susceptible to misuse in PHP and notifies you via email.   You can easily install and use it on WordPress and GnuBoard 5.   Upon initial activation, it scans your system thoroughly, and if suspicious...

Registry Monitoring (Delphi)

How to Use procedure RegistryMonitor(RootKey: HKEY; Key: string; Proc: TProc; WatchSub: boolean); begin TThread.CreateAnonymousThread(procedure var Reg: TRegistry; Event: cardinal; begin Reg := TRegistry.Create; Reg.RootKey := RootKey; if Reg.OpenKeyReadOnly(Key) then begin Event := CreateEvent(nil, False, False, nil); if Event > 0 then begin while True do begin RegNotifyChangeKeyValue(Reg.CurrentKey, WatchSub, REG_NOTIFY_CHANGE_LAST_SET, Event, True); if WaitForSingleObject(Event, INFINITE) =...

Morphological Analysis Installation and Usage (PHP)

Installation Environment: CentOS 7 default, PHP 7 yum install gcc-c++ java-1.7.0-openjdk-devel python-devel zlib-devel openssl 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.9.2.tar.gz tar zxfv mecab-0.996-ko-0.9.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...

Installing and Using Delphi 10.2 Tokyo Linux PAServer

Delphi has been updated to version 10.2. This is the first installation method for use on CentOS 7. # yum -y update # yum install -y firewalld # systemctl unmask firewalld # systemctl enable firewalld # systemctl start firewalld # firewall-cmd --permanent --add-port=64211/tcp # firewall-cmd --reload # yum group install "Development Tools" # yum install...