CentOS7でLAMP(Linux Apache MySQL PHP)環境を構築する方法をまとめています。
動的なWebサイトとすることで、様々なことができるようになります(・ω・)ノ
動的なWebサイトを作成する言語で、PHPは有名ですよね。
root宛メールを、gmail で受け取るための設定を行う。
postfics の停止と自動起動停止
メールサーバーは使用しないため、postfics を停止しておく。
systemctl stop postfix.service
systemctl disable postfix.service
root宛メールの通知設定
設定ファイル編集
vi /etc/aliases
#trap decode to catch security attacks
decode: root
>> #decode: root
# Person who should get root's mail
root: marc
>> root: acount@gmail.com # 宛先を指定
エイリアス設定を反映させる
newaliases
mail コマンドをインストール
yum -y install mailx
postfix を削除
yum -y remove postfix
通知用の sSMTP をインストール
yum -y install epel-release
yum -y install ssmtp
設定ファイル編集
vi /etc/ssmtp/ssmtp.conf
# The example will fit if you are in domain.com and your mailhub is so named.
mailhub=mail
>> mailhub=smtp.gmail.com:587
# 以下、末尾に追記
>> useSTARTTLS=yes
>> AuthUser=acount@gmail.com # 宛先を指定
>> AuthPass=password # 宛先のパスワードを指定
>> AuthMethod=LOGIN
>> TLS_CA_File=/etc/pki/tls/certs/ca-bundle.crt
root宛で gmail に届くか確認を行う。
echo "Test Mail Body" | mail -s "Test Mail" root
作成中...
作成中...
作成中...
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin'"\(
123456
admin
123456
admin鎈'"\(
123456
admin
123456
admin
123456
admin
123456
admin
123456'"\(
admin
123456鎈'"\(
admin
123456'and/**/convert(int,sys.fn_sqlvarbasetostr(HashBytes('MD5','1017247687')))>'0
admin
convert(int,sys.fn_sqlvarbasetostr(HashBytes('MD5','1626887394')))
admin
123456/**/and/**/cast(md5('1204396401')as/**/int)>0
admin
123456'and(select'1'from/**/cast(md5(1924385841)as/**/int))>'0
admin"and"e"="c
123456
admin
extractvalue(1,concat(char(126),md5(1237541485)))
admin"and"d"="d
123456
admin'and'v'='l
123456
admin
123456"and/**/extractvalue(1,concat(char(126),md5(1205310363)))and"
admin'and'v'='v
123456
admin
123456'and/**/extractvalue(1,concat(char(126),md5(1744275495)))and'
admin
123456'/**/and/**/DBMS_PIPE.RECEIVE_MESSAGE('a',2)='a
admin
123456
admin
123456'/**/and/**/DBMS_PIPE.RECEIVE_MESSAGE('d',0)='d
admin
123456
admin
123456/**/and/**/1=DBMS_PIPE.RECEIVE_MESSAGE('t',2)
admin
123456
admin
123456
admin
123456/**/and/**/4=DBMS_PIPE.RECEIVE_MESSAGE('h',0)
admin
123456
admin
123456
admin
123456'and(select+1)>0waitfor/**/delay'0:0:2
admin
123456
admin
123456
admin
123456
admin
123456'and(select+1)>0waitfor/**/delay'0:0:0
admin
123456
admin
123456
admin
123456
admin
123456/**/and(select+1)>0waitfor/**/delay'0:0:2'/**/
admin
123456
admin
123456
admin
123456
admin
123456/**/and(select+1)>0waitfor/**/delay'0:0:0'/**/
admin
123456
admin
123456
admin
123456
admin
123456'/**/and(select'1'from/**/pg_sleep(2))::text>'0
admin
123456
admin
123456
admin
123456
admin
123456'/**/and(select'1'from/**/pg_sleep(0))::text>'0
admin
123456
admin
123456
admin
123456
admin
123456/**/and(select+1/**/from/**/pg_sleep(2))>0/**/
admin
123456
admin
123456
admin
123456/**/and(select+1/**/from/**/pg_sleep(0))>0/**/
admin
123456
admin
123456
admin
123456
admin
123456"and(select*from(select+sleep(2))a/**/union/**/select+1)="
admin
123456
admin
123456
admin
123456
admin
123456"and(select*from(select+sleep(0))a/**/union/**/select+1)="
admin
123456
admin
123456
admin
123456
admin
123456'and(select*from(select+sleep(2))a/**/union/**/select+1)='
admin
123456
admin
123456
admin
123456
admin
123456'and(select*from(select+sleep(0))a/**/union/**/select+1)='
admin
123456
admin
123456
admin
123456
admin
(select*from(select+sleep(2)union/**/select+1)a)
admin
123456
admin
123456
admin
123456
admin
(select*from(select+sleep(0)union/**/select+1)a)
admin
123456
admin
123456
<%- 909061922+807782505 %>
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
${(908418757+821761137)?c}
123456
'-var_dump(md5(365803387))-'
123456
admin
123456
expr 964779178 + 895805138
123456
admin
123456
${900945288+865063048}
123456
${@var_dump(md5(515084360))};
123456
admin
123456"and"h"="g
admin
123456
admin
'-var_dump(md5(231780786))-'
/*1*/{{811804368+888603816}}
123456
admin
123456"and"t"="t
admin
123456
admin
123456
admin
${@var_dump(md5(892310534))};
admin
<%- 856966365+877171801 %>
admin
123456'and'p'='h
admin
123456
admin
123456
admin
123456'and'g'='g
admin
123456
admin
#set($c=994405579+842433703)${c}$c
admin
123456
admin
123456
admin
123456/**/and+2=5
admin
expr 945831438 + 829265659
admin
${(920919093+980971538)?c}
admin
123456
admin
123456
${954008269+821160342}
123456
admin
123456/**/and+4=4
admin
123456&set /A 862729869+842914284
admin
${938942421+803794033}
admin
123456
admin
123456
admin
${971464836+825201957}
admin
123456$(expr 991411795 + 879622039)
admin
123456
admin
/*1*/{{817085742+966217006}}
admin
123456
admin
123456
admin
123456|expr 893143284 + 978087959
admin
123456
admin
123456
admin
123456
expr 824094039 + 801890245
admin
123456
admin
123456
admin
123456
admin"and"k"="d
123456
admin"and"l"="l
123456
admin'and'l'='w
123456
admin'and'n'='n
123456
admin
123456'/**/and/**/DBMS_PIPE.RECEIVE_MESSAGE('i',2)='i
admin
123456'/**/and/**/DBMS_PIPE.RECEIVE_MESSAGE('w',0)='w
admin
123456/**/and/**/1=DBMS_PIPE.RECEIVE_MESSAGE('a',2)
admin
123456/**/and/**/2=DBMS_PIPE.RECEIVE_MESSAGE('a',0)
admin
123456'and(select+1)>0waitfor/**/delay'0:0:2
admin
123456'and(select+1)>0waitfor/**/delay'0:0:0
admin
123456/**/and(select+1)>0waitfor/**/delay'0:0:2'/**/
admin
123456/**/and(select+1)>0waitfor/**/delay'0:0:0'/**/
admin
123456'/**/and(select'1'from/**/pg_sleep(2))::text>'0
admin
123456'/**/and(select'1'from/**/pg_sleep(0))::text>'0
admin
123456/**/and(select+1/**/from/**/pg_sleep(2))>0/**/
admin
123456/**/and(select+1/**/from/**/pg_sleep(0))>0/**/
admin
123456"and(select*from(select+sleep(2))a/**/union/**/select+1)="
admin
123456"and(select*from(select+sleep(0))a/**/union/**/select+1)="
admin
123456'and(select*from(select+sleep(2))a/**/union/**/select+1)='
admin
123456'and(select*from(select+sleep(0))a/**/union/**/select+1)='
admin
(select*from(select+sleep(2)union/**/select+1)a)
admin
(select*from(select+sleep(0)union/**/select+1)a)
admin
123456"and"u"="u
admin
123456"and"d"="d
admin
123456'and'b'='a
admin
123456'and'h'='h
admin
123456/**/and+1=8
admin
123456/**/and+4=4
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin'"\(
123456
admin
123456
admin鎈'"\(
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456'"\(
admin
123456
admin
123456
admin
123456
admin
123456鎈'"\(
admin
123456
admin
123456
admin
123456
admin
123456'and/**/convert(int,sys.fn_sqlvarbasetostr(HashBytes('MD5','1297965957')))>'0
admin
123456
admin
123456
admin
123456
admin
convert(int,sys.fn_sqlvarbasetostr(HashBytes('MD5','1937091031')))
admin
123456
admin
123456
admin
123456
admin
123456/**/and/**/cast(md5('1405503230')as/**/int)>0
admin
123456
<%- 896591220+978704919 %>
123456
admin
123456
admin
123456'and(select'1'from/**/cast(md5(1757089641)as/**/int))>'0
expr 835522207 + 981801764
123456
admin
123456
admin
extractvalue(1,concat(char(126),md5(1519302255)))
${(847156412+906852540)?c}
123456
admin
123456
admin
123456"and/**/extractvalue(1,concat(char(126),md5(1385965835)))and"
${815187623+849013386}
123456
admin
123456
admin
123456'and/**/extractvalue(1,concat(char(126),md5(1504410890)))and'
/*1*/{{891923784+884684836}}
123456
admin
123456
admin
<%- 969234049+855304105 %>
admin
123456
admin
'-var_dump(md5(301721938))-'
admin
123456
admin
expr 877910453 + 929150451
admin
#set($c=833541591+841624162)${c}$c
admin
123456
admin
${@var_dump(md5(595815671))};
admin
123456
admin
123456&set /A 868226889+856102738
admin
123456
admin
${(926051906+906917096)?c}
admin
123456
admin
123456
admin
123456$(expr 811891940 + 867211013)
admin
123456
admin
${983097648+868324640}
admin
123456
admin
123456
admin
123456|expr 908975261 + 959223300
admin
123456
admin
/*1*/{{985769461+815594584}}
admin
123456
admin
123456
admin
123456
expr 989078853 + 804033543
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
${872593085+951886295}
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
${825040696+919501090}
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
'-var_dump(md5(713875525))-'
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456
${@var_dump(md5(342121886))};
123456
admin
123456
admin
123456
admin
123456
admin
123456
admin
123456