顯示具有 Tool 標籤的文章。 顯示所有文章
顯示具有 Tool 標籤的文章。 顯示所有文章

2017年11月15日 星期三

[ngrok] How to connect(ssh) remote pc through ngrok

Login your account to the webpage of ngrok.
ngrok wiil display authentication.

Ex: ./ngrok authtoken 7pbKPaaaaaaaaaaaaaaaaaaaaaYLW9bbbbbbbbbb

Type authentication token method into pc and pc will store the token.

Start secure tunnel
ngrok tcp 22

After start ngrok will appear following.
Forwarding                    tcp://20.tcp.ngrok.io:33333 -> localhost:80


Connect to remote machine
ssh -p 33333 20.tcp.ngrok.io


Connect to remote machine folder as local folder
sshfs -p 18001 happy@0.tcp.ngrok.io:/ /home/happy/


Send remote file to local
rsync -rvz -e 'ssh -p 12345 -o Compression=no' --progress --remove-sent-files gogo@192.168.0.1:/tmp/ok.sh .

scp -P 14367 hapy@101.tcp.ngrok.io:/home/happy/good.tar.bz2

Git clone from remote
git clone ssh://happy@0.tcp.ngrok.io:18111/home/happy/git/test


If user want to use different port service. Please login the webpage of ngrok again will get another authentication token, then repeat above step again. PC will create another port service.

Ref

2017年11月14日 星期二

2017年10月29日 星期日

[Tools] google search by using cli

Install googler into system
sudo curl -o /usr/local/bin/googler https://raw.githubusercontent.com/jarun/googler/v3.3/googler && sudo chmod +x /usr/local/bin/googler

Fetch 15 results updated within the last 14 months, starting from the 3rd result for the keywords jungle book in site imdb.com:
$ googler -n 15 -s 3 -t m14 -w imdb.com jungle book

Reference:

2017年10月22日 星期日

The tools of Reverse Engineering

“devttys0/binwalk”:https://github.com/devttys0/binwalk
” The HT Editor: A file editor/viewer/analyzer for executables.”:https://github.com/sebastianbiallas/ht
“VBinDiff (Visual Binary Diff) displays files in hexadecimal and ASCII (or EBCDIC).”:https://www.cjmweb.net/vbindiff/
“Radare is a portable reversing framework”:http://rada.re/r/

2017年3月30日 星期四

2017年2月10日 星期五

2017年1月6日 星期五

2016年7月11日 星期一

2016年5月15日 星期日

2015年12月21日 星期一

2015年5月25日 星期一

2014年5月9日 星期五

2014年5月8日 星期四

2014年4月3日 星期四

2014年3月20日 星期四

2013年11月28日 星期四

[Camtasia] How to use camtasia to record the screen


[Camtasia] How to use camtasia to record the screen



1. Open camtasia and choose "Record the screen"



 




2. Adjust "Select area" and press the red button of "rec".



 



3. When user want stop, press the button of "Stop".



 



4. Save the file



 



5. save file as *.camrec



 



6. Just press OK



 



7. Because I want save as SWF. So select the button of "Produce and share".



 



8. Choose the item like the pic.



 



9. Select MP4



 



10. Just press next



 



11. Just press next



 



12. Please rename at "Production name". After rename, then press the button of "complete".



 



13. The program start to transfer the movie to SWF.



 



14. After transfer complete, will display the screen like below.



 


2013年8月16日 星期五

[tool] How to compile the opensip


[tool] How to compile the opensip

1. Install library

apt-get install build-essential openssl bison flex perl libdbi-perl libdbd-mysql-perl libdbd-pg-perl libfrontier-rpc-perl libterm-readline-gnu-perl libberkeleydb-perl ncurses-dev mysql-server libmysqlclient-dev



2. Search tarball from internet

http://www.opensips.org/



For the stable releases, tarballs with source or binaries may be downloaded directly from the project web site:

http://opensips.org/pub/opensips/



Choose the version which you want to download.



3.  Install opensip

tar xzvf opensips-1.8.0-tls   (tls  =  long term support)

make all

make install



4. Copy two configuration file

sudo cp ./opensips-1.8.0-tls/packaging/debian/opensips.default /etc/default/opensips

sudo cp ./opensips-1.8.0-tls/packaging/debian/opensips.init /etc/init.d/opensips

sudo chmod +x /etc/init.d/opensips



5. Edit configuration file

mkdir /var/run/opensips



cd /usr/src/opensips-1.8.0-beta-tls/packagi­ng/debian



cp opensips.default /etc/default/opensips

cp opensips.init /etc/init.d/opensips



chmod +x /etc/init.d/opensips

useradd opensips

update-rc.d opensips defaults 99



vi /etc/default/opensips



Replace the RUN_OpenSIPS to yes



vi /etc/init.d/opensips



Replace the line DAEMON=/usr/sbin/opensips to:

DAEMON=/usr/local/sbin/opensips



Reference :



[Sipp][SipTime] How to compiler sipp on the ubuntu 10.04

[Sipp] How to compiler sipp on the ubuntu 10.04



Sipp web page to see more information

http://sipp.sourceforge.net/



See the "Download page", and choose "Stable".

http://sourceforge.net/projects/sipp/files/



Download the lastest sipp version

sipp-3.3.tar.gz



tar xvf sipp-3.3.tar.gz



cd sipp-3.3



Install library and compiler.

sudo apt-get install libncurses5-dev libncursesw5-dev g++



make



After make have a sipp binary.



Reference :



  • http://sipp.sourceforge.net/


2013年8月6日 星期二

2013年8月5日 星期一

[SecureCRT] Script example


[SecureCRT] Script example

#$language = "VBScript"

#$interface = "1.0"

 

' This automatically generated script may need to be

' edited in order to work correctly.

 

Sub Main

    crt.Screen.Synchronous = True

    Dim env, flie, full, medium

    file = "happy-1.1.0.14-" & Right(DatePart("yyyy", Now()),2) & Right("0" & DatePart("m",Now()),2) & Right("0" & DatePart("d",Now()),2) &".img"

    full = file & ".full"

    medium = file & ".medium"

    'crt.Screen.Send VbCr

 

    env = crt.Screen.ReadString("normal", "full", "medium", "uboot", VbCr)

    select case crt.Screen.MatchIndex

    case 1

        crt.Screen.Send VbCr

        crt.Screen.Send "reboot" & VbCr

        crt.Screen.WaitForString "Press SPACE to abort autoboot in 1 second(s)"

        crt.Screen.Send " " & VbCr

        crt.Screen.WaitForString "=>"

        crt.Screen.Send "set UBFINAME1 " & file & VbCr

        crt.Screen.WaitForString "=>"

        crt.Screen.Send "run update1" & VbCr

        crt.Screen.WaitForString "Writing to Flash"

        crt.Screen.Send VbCr

        crt.Screen.WaitForString "=>"

        crt.Screen.Send "reset" & VbCr

        msgbox "Brun in " & file & "pass"

    case 2

        crt.Screen.Send VbCr

        crt.Screen.Send "reboot" & VbCr

        crt.Screen.WaitForString "Press SPACE to abort autoboot in 1 second(s)"

        crt.Screen.Send " " & VbCr

        crt.Screen.WaitForString "=>"

        crt.Screen.Send "set UBFINAME1 " & full & VbCr

        crt.Screen.Send "run updateall" & VbCr

        crt.Screen.WaitForString "Writing to Flash"

        crt.Screen.Send VbCr

        crt.Screen.WaitForString "=>"

        crt.Screen.Send "reset" & VbCr

        msgbox "Brun in " & full & "pass"

    case 3

        crt.Screen.Send VbCr

        crt.Screen.Send "reboot" & VbCr

        crt.Screen.WaitForString "Press SPACE to abort autoboot in 1 second(s)"

        crt.Screen.Send " " & VbCr

        crt.Screen.WaitForString "=>"

        crt.Screen.Send "set UBFINAME1 " & medium & VbCr

        crt.Screen.WaitForString "=>"

        crt.Screen.Send "run update1" & VbCr

        crt.Screen.WaitForString "Writing to Flash"

        crt.Screen.Send VbCr

        crt.Screen.WaitForString "=>"

        crt.Screen.Send "reset" & VbCr

        msgbox "Brun in " & medium & "pass"

    case 4

        crt.Screen.Send VbCr

        crt.Screen.Send "reboot" & VbCr

        crt.Screen.WaitForString "Press SPACE to abort autoboot in 1 second(s)"

        crt.Screen.Send " " & VbCr

        crt.Screen.WaitForString "=>"

        crt.Screen.Send "set UBFINAME1 " & file

    case Else

        msgbox "TimeOut : Unknown brun in command " & date

    end select

End Sub