tag:blogger.com,1999:blog-57417507565817429642024-02-21T09:14:09.992+09:00ZZUF.INFOZZUFhttp://www.blogger.com/profile/07015636890682102512noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-5741750756581742964.post-5050425037465485022015-01-26T12:10:00.000+09:002015-05-14T20:49:24.311+09:00[Twitter][Python] アカウント作成API前回は擬似xAuth+アカウント生成でしたが、アカウント生成部分だけ切り取りました。<br/><br/>APIを叩いているモジュールは<a href="https://github.com/simplegeo/python-oauth2">python-oauth2</a>です。<br/><br/><script src="https://gist.github.com/zzuf/5d3801421b0197f626aa.js"></script>ZZUFhttp://www.blogger.com/profile/07015636890682102512noreply@blogger.com2tag:blogger.com,1999:blog-5741750756581742964.post-66132330595501383122015-01-03T01:56:00.000+09:002015-05-14T20:49:24.257+09:00[Twitter]擬似xAuth+自動垢作成PHPで擬似xAuthを使い色々としている記事を見て、なんか作ってみたくなったのでPythonで書いてみました。<br/><br/><a title="Gist" href="https://gist.github.com/zzuf/5a414e25cf9d2afaa6a1">https://gist.github.com/zzuf/5a414e25cf9d2afaa6a1</a><br/><br/><script src="https://gist.github.com/zzuf/5a414e25cf9d2afaa6a1.js"></script>ZZUFhttp://www.blogger.com/profile/07015636890682102512noreply@blogger.com5tag:blogger.com,1999:blog-5741750756581742964.post-24626748615756659642014-11-08T04:12:00.000+09:002015-05-14T20:49:24.249+09:00JBApp今年の夏くらいから脱獄アプリを作っています。<br/><br/>リポジトリは"<a href="http://repo.zzuf.info">repo.zzuf.info</a>"です。<br/><br/>最初に作ったのはLINEの招待を一括で端末内のデーターベースから削除するというものでした。<br/><br/>ShellScriptを実行するだけのかなり単純なアプリでした。黒歴史ですね<br/><br/>それからこの間作ったものはCydia Substrateを使いLINEをフックして招待がきたらデータベースから招待のデータを消すというものです。<br/><br/>THEOSを使って作ったのですが資料が海外サイトにたくさんあったのですぐに作ることができました。<br/><br/>そのうちJBAppの作り方(?)を書いていきたいと思っています。ZZUFhttp://www.blogger.com/profile/07015636890682102512noreply@blogger.com0tag:blogger.com,1999:blog-5741750756581742964.post-78821663654388337272014-11-08T02:43:00.000+09:002015-05-17T16:10:05.671+09:00[Ubuntu] MetasploitをインストールUbuntuにMetasploitをいれてみた。<br />
仮想でいれる手順とか必要ないと思ったけど一応<br />
<ol><br /><ol><br />
<li>仮想化ソフトをインストールします。<br />VMware Player か VirtualBox が無料でインストールできます。<br />ダウンロードリンク:<a href="https://my.vmware.com/jp/web/vmware/free#desktop_end_user_computing/vmware_player/6_0" target="_blank" title="VMware Player">VMware Player</a> <a href="http://download.virtualbox.org/virtualbox/4.3.12/VirtualBox-4.3.12-93733-Win.exe" target="_blank">VirtualBox</a></li>
<br />
<li>Ubuntuをダウンロードし仮想化ソフトにインストールします。<br />Ubuntu12.04のダウンロードリンク:<a href="http://ftp.kddilabs.jp/Linux/packages/ubuntu-jp/release-cd/releases/12.04/ubuntu-ja-12.04-desktop-i386.iso" target="_blank">WEB</a> <a href="http://ftp.kddilabs.jp/Linux/packages/ubuntu-jp/release-cd/releases/12.04/ubuntu-ja-12.04-desktop-i386.iso.torrent" target="_blank">Torrent</a><br />仮想化ソフトへのインストール方法<br /><a href="http://www.aise.ics.saitama-u.ac.jp/~gotoh/VMPlayerIntoWindows7.html" target="_blank">VMware</a><a href="http://pc-karuma.net/windows-8-virtualbox-ubuntu-install/" target="_blank">VirtualBox</a>※メモリは最低でも1GB、HDDは20GB程度に設定してください。</li>
<br />
<li>仮想内でUbuntuを起動します。<br />下のコマンドを実行します。<br />
<pre class="prettyprint">
user:~$sudo apt-get update
user:~$sudo apt-get upgrade
#gitが入っていない場合は
$apt-get install git
#スクリプトをダウンロード
user$git clone https://github.com/darkoperator/MSF-Installer
user:~$cd MSF-Installer
user:~/MSF-Installer$./msf_install.sh -h
Script for Installing Metasploit Framework
By Carlos_Perez[at]darkoperator.com
Ver 0.1.7
-i :Install Metasploit Framework.
-p <password> :password for Metasploit databse msf user. If not provided a random one is generated for you.
-r :Installs Ruby using Ruby Version Manager.
-h :This help message
#iを選んでインストールします
user:~/MSF-Installer$./msf_install.sh -i
[*] Log file with command output and errors /tmp/msfinstall-Nov-15-14-011249.log
[*] Installing dependencies for Metasploit Framework
[*] Finished installing the dependencies.
[*] Installing base Ruby Gems
[*] Finished installing the base gems.
[*] Downloading and Compiling the latest version of Nmap
[*] Downloading from SVN the latest version of Nmap
[*] Configuring Nmap
[*] Compiling the latest version of Nmap
[*] Installing the latest version of Nmap
[*] Creating the MSF Database user msf with the password provided
[*] Metasploit Role named msf has been created.
[*] Creating msf database and setting the owner to msf user
[*] Metasploit database named msf has been created.
[*] Installing Metasploit Framework from the GitHub Repository
[*] Cloning latest version of Metasploit Framework
[*] Linking metasploit commands.
[*] linking msfbinscan command
[*] linking msfcli command
[*] linking msfconsole command
[*] linking msfd command
[*] linking msfelfscan command
[*] linking msfencode command
[*] linking msfmachscan command
[*] linking msfpayload command
[*] linking msfpescan command
[*] linking msfrop command
[*] linking msfrpc command
[*] linking msfrpcd command
[*] linking msfupdate command
[*] linking msfvenom command
[*] Creating Database configuration YAML file.
[*] setting environment variable in system profile. Password will be requiered
[*] Installing required ruby gems by Framework using bundler on System Ruby
[*] Starting Metasploit so as to populate the database.
[*] Finished Metasploit installation
[*] Installing additional Metasploit plugins
[*] Installing pentest plugin
############
1######################################################################## 100.0%
[*] The pentest plugin has been installed.
[*] Installing DNSRecon Import plugin
######################################################################## 100.0%
[*] The dnsr_import plugin has been installed.
[*] Downloading latest version of Armitage
[*] Decompressing package to /usr/local/share/armitage
[*] Creating link for Armitage in /usr/local/bin/armitage
[*] Creating link for Teamserver in /usr/local/bin/teamserver
[*] Finished
[*] ##################################################################
[*] ### YOU NEED TO RELOAD YOUR PROFILE BEFORE USE OF METASPLOIT! ###
[*] ### RUN source ~/.bashrc ###
[*] ### When launching teamserver and armitage with sudo use the ###
[*] ### use the -E option to make sure the MSF Database variable ###
[*] ### is properly set. ###
[*] ### ###
[*] ##################################################################</pre>
</li>
<br />
<li>インストール完了後にmsfupdateを実行してみると<br /><pre class="lang:sh decode:true">user:~MSF-Installer$msfupdate
An error occurred while installing nokogiri (1.6.4.1), and Bundler cannot
continue.
Make sure that `gem install nokogiri -v '1.6.4.1'` succeeds before
bundling.</pre>
<br />上のエラーがでたので<br />
<pre class="prettyprint">user:~/MSF-Installer$sudo gem install nokogiri -v '1.6.4.1'</pre>
<br />をしてからmsfupdateするといけました。</li>
<br />
<li>最後にmsfconsoleで実行を確認。<br />
<pre class="prettyprint">user:~$msfconsole
[*] Starting the Metasploit Framework console.../[*] The initial module cache will be built in the background, this can take 2-5 minutes...
/
, ,
/ \
((__---,,,---__))
(_) O O (_)_________
\ _ / |\
o_o \ M S F | \
\ _____ | *
||| WW|||
||| |||
=[ metasploit v4.10.1-dev [core:4.10.1.pre.dev api:1.0.0]]
+ -- --=[ 1369 exploits - 761 auxiliary - 219 post ]
+ -- --=[ 340 payloads - 37 encoders - 8 nops ]
+ -- --=[ Free Metasploit Pro trial: http://r-7.co/trymsp ]
</pre>
<br /> </li>
</ol>
</ol>
ZZUFhttp://www.blogger.com/profile/07015636890682102512noreply@blogger.com5