Skip to main content

Posts

Honebrew on MAC

referring to Homebrew site. Step1. Installing brew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Step2. Executing brew doctor to check brew status $ brew doctor Your system is ready to brew. Step3. Check brew version $ brew -v Homebrew 1.3.4 Homebrew/homebrew-core (git revision 2105c; last commit 2017-10-01)
Recent posts

ettercap on MAC OSX

TK-MBA-2:~ taka$ brew info ettercap ettercap: stable 0.8.2 (bottled), HEAD Multipurpose sniffer/interceptor/logger for switched LAN https://ettercap.github.io/ettercap/ /usr/local/Cellar/ettercap/0.8.2_1 (75 files, 2.3MB) *   Poured from bottle on 2017-05-25 at 14:14:48 From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/ettercap.rb ==> Dependencies Build: cmake ✘ , ghostscript ✘ Required: pcre ✔ , libnet ✔ , openssl ✔ Optional: ghostscript ✘ , gtk+ ✘ , gtk+3 ✘ , luajit ✘ ==> Options --with-ghostscript Build with ghostscript support --with-gtk+ Build with gtk+ support --with-gtk+3 Build with gtk+3 support --with-luajit Build with luajit support --without-curses Install without curses interface --without-ipv6 Install without IPv6 support --without-plugins Install without plugins support --HEAD Install HEAD version TK-MBA-2:~ taka$ ettercap --with-gtk+ ettercap 0.8.2 copyright 2001-2015 Ettercap

MAC OSX: Wireless LAN Information

MAC OSX displays BSSID information https://discussions.apple.com/thread/2522079?start=0&tstart=0 *airport command aruba$ /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -c channel: 36,80 aruba$ /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I agrCtlRSSI: -63 agrExtRSSI: 0 agrCtlNoise: -95 agrExtNoise: 0 state: running op mode: station lastTxRate: 585 maxRate: 1300 lastAssocStatus: 0 802.11 auth: open link auth: wpa2-psk BSSID: 6c:70:9f:e7:5b:b3 SSID: TK-Home MCS: 7 channel: 36,80 *airport command aruba$ /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -s                             SSID BSSID             RSSI CHANNEL HT CC SECURITY (auth/unicast/group)                  BCW710J-67A7E-G 00:1c:7b:d3:7d:ad 0    6       Y  -- WPA(PSK/AES,TKIP/TKIP) WPA2(PSK/AES,TKIP/TKIP) 

CL and LF, /bin/bash^M: bad interpreter:

Windows CR and LF Linux: LF only Files saved in Windows and they have errors when exectured in the Linux. /bin/bash^M: bad interpreter: そのようなファイルやディレクトリはありません /bin/bash^M: bad interpreter: No such file or directory It is because files are stored with \r\n and it needs to be corrected with \n. cat -e displays LF as $ and CR as ^M . cat -e filename http://totech.hateblo.jp/entry/2014/03/19/174129 http://d.hatena.ne.jp/JiaLu/20090911/1252627589

how to write blog

Referring to the following page. http://ameblo.jp/sumitak1329/entry-11593572421.html https://youland.net/enclose-line http://kawakamitakehiro.com/wakuwaku/ http://ameblo.jp/sugarandspice-meg/entry-12095507450.html http://girly-tips.top/blog/ameblo/post-41 https://youland.net/enclose-line <div style="background: #ffeeee; border: 2px dotted #ff0000; padding: 10px;"> 枠内の記事本文</div><br /> 枠内の記事本文 <div style="background:#eeeeff; padding:10px; border:2px dotted #0000ff;">枠内の記事本文</div><br> 枠内の記事本文 <legend>タイトル</legend>枠の中の文章</fieldset> タイトル 枠の中の文章 <div style="border-style: solid; border-width: 1px;"> 枠線で囲まれる本文</div> 枠線で囲まれる本文 <div style="background:#f7f7f7; padding:10px; border-radius: 10px; border: 2px dotted #CCCCCC;">枠内の記事本文</div><br> 枠内の記事本文

Checking OS version

Checking the kernel version [root@ip-172-31-27-217 cron.daily]# cat /proc/version  Linux version 2.6.32-358.14.1.el6.x86_64 (mockbuild@x86-022.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Mon Jun 17 15:54:20 EDT 2013 [root@ip-172-31-27-217 cron.daily]# uname -a Linux ip-172-31-27-217.ap-northeast-1.compute.internal 2.6.32-358.14.1.el6.x86_64 #1 SMP Mon Jun 17 15:54:20 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux Checking OS version [root@ip-172-31-27-217 cron.daily]# cat /etc/redhat-release  Red Hat Enterprise Linux Server release 6.4 (Santiago) Referring to the page below. http://qiita.com/ritukiii/items/60a3ac4734fc52748cee

cron/crontab

Referring to the page: http://qiita.com/katsukii/items/d5f90a6e4592d1414f99 Step1: Checking Daemon  [root@ip-172-31-27-217 cron]# service crond status crond (pid  1306) is running... Step2:  Editting shell: date command and ping 8.8.8.8 and write the outputs into hoge.txt [root@ip-172-31-27-217 ~]# more ping.sh  date >> hoge.txt; ping -c 1 8.8.8.8 | grep 'from'  >> hoge.txt Step3.  Editting crontab [root@ip-172-31-27-217 ~]# crontab -e */10 * * * * cd /root; ./ping.sh Result  [root@ip-172-31-27-217 ~]# more hoge.txt  Mon Oct 31 03:20:01 EDT 2016 64 bytes from 8.8.8.8: icmp_seq=1 ttl=59 time=3.53 ms Mon Oct 31 03:30:01 EDT 2016 64 bytes from 8.8.8.8: icmp_seq=1 ttl=59 time=3.51 ms Mon Oct 31 03:40:01 EDT 2016 64 bytes from 8.8.8.8: icmp_seq=1 ttl=59 time=3.60 ms Mon Oct 31 03:50:01 EDT 2016 64 bytes from 8.8.8.8: icmp_seq=1 ttl=59 time=3.54 ms Checking the crontab