tag:blogger.com,1999:blog-31344005924296212092024-03-13T13:39:24.070+01:00/masterzorag/logopensource resources still hackin', bruteforge, OpenCL, PS3 and many SHA1 rounds...Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.comBlogger35125tag:blogger.com,1999:blog-3134400592429621209.post-85477581226756601352017-01-12T11:36:00.000+01:002017-01-12T11:36:23.085+01:00bf_new, openSimpler, faster (about 30M/sec on my junk), minimal, portable and more advanced:<br />
bruteforge is being rewritten from scratch, but this time goes <a href="https://github.com/masterzorag/bf_new" target="_blank">live, in the wild</a>.<br />
<br />
I'll use repo's included wiki to spot some notes or howtos, meanwhile 💟 it.<br />
<br />Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com0tag:blogger.com,1999:blog-3134400592429621209.post-89231803353442203082016-02-23T10:51:00.001+01:002016-02-23T10:51:34.778+01:00Ride on java Application Servers<div style="text-align: center;">
I'm an opensource entusiast, we can <span style="color: #0000ee;">test</span> everything for free, you <i>just need</i> background and skills</div>
<br />
<div style="text-align: left;">
want to digg into the Java Application Server(s) world? Just test/run two of them:</div>
<div style="text-align: left;">
* Red Hat developed <a href="http://www.jboss.org/" target="_blank">JBoss AS</a>, currently <a href="http://wildfly.org/" target="_blank">Wildfly</a>;</div>
<div style="text-align: left;">
* free solutions exists like <a href="http://tomcat.apache.org/" target="_blank">Apache Tomcat</a>.</div>
<br />
<br />
<div style="text-align: left;">
My Host machine is a Gentoo x86_64 and I don't want flood my setup with tons of dependences,<span style="color: #0000ee;"><u> </u></span>so just fire up <a href="https://www.virtualbox.org/" target="_blank">Oracle Virtualbox</a> and setup a minimal Virtual Machine to install <a href="https://getfedora.org/" target="_blank">Fedora 23</a></div>
<br />
<div style="text-align: center;">
<a href="https://www.redhat.com/en/technologies/linux-platforms/articles/relationship-between-fedora-and-rhel">Learn more about the relationship between Red Hat and Fedora »</a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-oPMrjetKaMk/Vswcveu-lhI/AAAAAAAAAN0/lovU-YijXjU/s1600/00.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="135" src="https://4.bp.blogspot.com/-oPMrjetKaMk/Vswcveu-lhI/AAAAAAAAAN0/lovU-YijXjU/s200/00.png" width="200" /></a></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
Here I have assigned just 768 MB of RAM and installed the <a href="https://getfedora.org/en/server/" target="_blank">Server flavour</a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-5xCPZRZaM6k/Vswd1BuvL4I/AAAAAAAAAOA/R0L4CZ-vSZs/s1600/01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="112" src="https://3.bp.blogspot.com/-5xCPZRZaM6k/Vswd1BuvL4I/AAAAAAAAAOA/R0L4CZ-vSZs/s200/01.png" width="200" /></a><a href="https://4.bp.blogspot.com/-KrzuG166b50/Vswd_gla2EI/AAAAAAAAAOE/pD1fpJ-d43s/s1600/02.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="112" src="https://4.bp.blogspot.com/-KrzuG166b50/Vswd_gla2EI/AAAAAAAAAOE/pD1fpJ-d43s/s200/02.png" width="200" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-bavFFmeDzHQ/VsweBqVNISI/AAAAAAAAAOI/aRdqb-tpIb4/s1600/03.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="112" src="https://2.bp.blogspot.com/-bavFFmeDzHQ/VsweBqVNISI/AAAAAAAAAOI/aRdqb-tpIb4/s200/03.png" width="200" /></a><a href="https://2.bp.blogspot.com/-5GUx8a-Tecc/VsweETXMlBI/AAAAAAAAAOM/eRAJi3TQPTo/s1600/04.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="112" src="https://2.bp.blogspot.com/-5GUx8a-Tecc/VsweETXMlBI/AAAAAAAAAOM/eRAJi3TQPTo/s200/04.png" width="200" /></a></div>
This VM it's bridged to my wlan1 gentoo host and: <br />
* can be accessed via <a href="https://en.wikipedia.org/wiki/Remote_Desktop_Protocol" target="_blank">RDP</a> by VirtualBox itself on guest network issue<br />
* can be accessed via sshd, running by default<br />
* it have <a href="https://www.docker.com/" target="_blank">Docker</a> service disabled by default<br />
<br />
<b>Apache Tomcat</b><br />
* installed directly on guest OS via dnf<br />
* adjusted config<br />
* deployed a sample<br />
<div style="text-align: center;">
<u>Tomcat is running on port 8080</u></div>
<div style="text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-UfJzQykBDJ0/VswhuEj1paI/AAAAAAAAAOY/SmyA_sID9ko/s1600/tc_00.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="112" src="https://1.bp.blogspot.com/-UfJzQykBDJ0/VswhuEj1paI/AAAAAAAAAOY/SmyA_sID9ko/s200/tc_00.png" width="200" /></a><a href="https://2.bp.blogspot.com/-kI4PavOdUyw/Vswh8dRx3oI/AAAAAAAAAOk/S01qkl_y9YQ/s1600/tc_03.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="112" src="https://2.bp.blogspot.com/-kI4PavOdUyw/Vswh8dRx3oI/AAAAAAAAAOk/S01qkl_y9YQ/s200/tc_03.png" width="200" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-nvkkYb4nC-E/Vswh2wgwWAI/AAAAAAAAAOc/J_JLvRqXHlQ/s1600/tc_01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="112" src="https://2.bp.blogspot.com/-nvkkYb4nC-E/Vswh2wgwWAI/AAAAAAAAAOc/J_JLvRqXHlQ/s200/tc_01.png" width="200" /></a><a href="https://2.bp.blogspot.com/-b2cxMPlUZxA/Vswh8XfpaEI/AAAAAAAAAOg/UcAXfayJZQk/s1600/tc_02.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="112" src="https://2.bp.blogspot.com/-b2cxMPlUZxA/Vswh8XfpaEI/AAAAAAAAAOg/UcAXfayJZQk/s200/tc_02.png" width="200" /></a></div>
<br />
<br />
This time to test the "<i>Docker images and container stuff</i>" then, run <b>JBoss AS</b> in a container!<br />
<br />
* disabled new firewalld default service and back to iptables<br />
* enabling service<br />
* building an image with JBoss AS with management console<br />
* deployed a sample<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-mrPP8GHTERE/VswkEcBU_yI/AAAAAAAAAO0/oviB-1HfMzc/s1600/05.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="112" src="https://1.bp.blogspot.com/-mrPP8GHTERE/VswkEcBU_yI/AAAAAAAAAO0/oviB-1HfMzc/s200/05.png" width="200" /></a><a href="https://3.bp.blogspot.com/-iJBvaBI2pck/VswkG_RUPqI/AAAAAAAAAO4/BalNKAwIBKY/s1600/06.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="112" src="https://3.bp.blogspot.com/-iJBvaBI2pck/VswkG_RUPqI/AAAAAAAAAO4/BalNKAwIBKY/s200/06.png" width="200" /></a></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<br /></div>
<div style="text-align: center;">
<u>Wildfly is running on port 8090</u></div>
<div style="text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-7avgKj1Lj_Y/VswlZdXV7KI/AAAAAAAAAPY/U65S_uprNfg/s1600/wf_05.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="98" src="https://2.bp.blogspot.com/-7avgKj1Lj_Y/VswlZdXV7KI/AAAAAAAAAPY/U65S_uprNfg/s200/wf_05.png" width="200" /></a><a href="https://4.bp.blogspot.com/-RsTiGrTgccs/VswlWTMZZpI/AAAAAAAAAPU/obo2M3ac91U/s1600/wf_00.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="112" src="https://4.bp.blogspot.com/-RsTiGrTgccs/VswlWTMZZpI/AAAAAAAAAPU/obo2M3ac91U/s200/wf_00.png" width="200" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-uAjYn0blEbg/Vswk5H2SXZI/AAAAAAAAAPI/WWP_BWymm98/s1600/wf_01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="112" src="https://1.bp.blogspot.com/-uAjYn0blEbg/Vswk5H2SXZI/AAAAAAAAAPI/WWP_BWymm98/s200/wf_01.png" width="200" /></a><a href="https://2.bp.blogspot.com/-g7ZAYxJsMmw/Vswk5jjPnyI/AAAAAAAAAPM/u63LgbqJHNQ/s1600/wf_04.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="110" src="https://2.bp.blogspot.com/-g7ZAYxJsMmw/Vswk5jjPnyI/AAAAAAAAAPM/u63LgbqJHNQ/s200/wf_04.png" width="200" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-JNVezo94XsU/Vswk4WcjYSI/AAAAAAAAAPA/E2YeUexHgbQ/s1600/wf_02.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="112" src="https://1.bp.blogspot.com/-JNVezo94XsU/Vswk4WcjYSI/AAAAAAAAAPA/E2YeUexHgbQ/s200/wf_02.png" width="200" /></a><a href="https://3.bp.blogspot.com/-vKQp37GiKJg/Vswk4RBZqAI/AAAAAAAAAPE/zlsyx1r4V3U/s1600/wf_03.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="110" src="https://3.bp.blogspot.com/-vKQp37GiKJg/Vswk4RBZqAI/AAAAAAAAAPE/zlsyx1r4V3U/s200/wf_03.png" width="200" /></a></div>
<br />
<div style="text-align: center;">
Of curse, the issue in this proof of concept test <b>IS</b> that:</div>
<div style="text-align: center;">
"I'm running Docker container <b>into</b> a Virtual Machine."</div>
<br />
<div style="text-align: center;">
<a href="https://www.docker.com/what-docker" target="_blank">more</a> about Docker concept</div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com0tag:blogger.com,1999:blog-3134400592429621209.post-64543166404429759552015-05-03T18:07:00.000+02:002015-05-07T10:12:55.132+02:00X-BitMap fonts<div style="text-align: justify;">
<span style="font-size: x-small;">Was looking at a raw C way to print to screen painting by pixel (to raw framebuffers) when, evaluating </span><span style="font-size: x-small;"><span style="font-size: x-small;">conversion from</span> TrueTypeFont to a well suited, handy format I faced <a href="http://en.wikipedia.org/wiki/X_BitMap" target="">X-BitMaps</a> images.</span></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<span style="font-size: x-small;">So, I've spended some bytes writing a script that convert an ASCII code range of ttf labels into xbm glyphs: genXBMfonts uses <a href="http://www.imagemagick.org/">ImageMagick</a>'s convert tool to write single 16x16 pixel, 1bpp XBM images, as C header of 32 chars.</span><br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="http://4.bp.blogspot.com/-rQ_xcjEk2pg/VUcma5YxJPI/AAAAAAAAAKg/fZhmha96xrA/s1600/ttf2xbm.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" height="239" src="http://4.bp.blogspot.com/-rQ_xcjEk2pg/VUcma5YxJPI/AAAAAAAAAKg/fZhmha96xrA/s320/ttf2xbm.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">xbm_dump called by genXBMfonts, (XBM is an image)</td></tr>
</tbody></table>
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="text-align: justify;">
<span style="font-size: x-small;">After that, I can copy my definition header in my project, and without the need of external library to include I can address text to glyph bits[], decode back (bit)checking and print text addressing the destination pixel:</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://cloud.githubusercontent.com/assets/8250079/7442590/edf68e98-f117-11e4-92e7-7db992a64692.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://cloud.githubusercontent.com/assets/8250079/7442590/edf68e98-f117-11e4-92e7-7db992a64692.png" width="320" /><span style="font-size: x-small;"> </span></a><span style="font-size: x-small;"> </span></div>
<div class="separator" style="clear: both; text-align: justify;">
<span style="font-size: x-small;">When painting on raw framebuffer we have control on color, as well.</span></div>
<div class="separator" style="clear: both; text-align: justify;">
<span style="font-size: x-small;">initiated public repository: <a href="https://github.com/masterzorag/xbm_tools">https://github.com/masterzorag/xbm_tools</a></span></div>
<div class="separator" style="clear: both; text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: justify;">
<span style="font-size: x-small;">About portability, this is a sample psl1ght app including the same C header definition, running on the ps3:</span></div>
<div class="separator" style="clear: both; text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/9UbTT_2yxeM/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/9UbTT_2yxeM?feature=player_embedded" width="320"></iframe></div>
Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com0tag:blogger.com,1999:blog-3134400592429621209.post-55512832856612851292013-08-06T12:01:00.000+02:002013-08-06T12:09:07.852+02:00vaapi on fglrxJust to test if we can get finally some sort of hardware accelerated decoding on AMD/ATI, I've tested a H264 video without any issue, here some from /var/log/Xorg.0.log:<br />
<blockquote>
<span style="font-size: x-small;">[ 26.252] (II) Module fglrx: vendor="FireGL - AMD Technologies Inc."</span><br />
<span style="font-size: x-small;">[ 26.274] (II) Module fglrxdrm: vendor="FireGL - AMD Technologies Inc."</span><br />
<span style="font-size: x-small;">[ 26.274] (II) AMD Proprietary Linux Driver Version Identifier:12.10.05</span><br />
<span style="font-size: x-small;">[ 26.274] (II) AMD Proprietary Linux Driver Release Identifier: 12.104</span><br />
<span style="font-size: x-small;">[ 26.274] (II) AMD Proprietary Linux Driver Build Date: Mar 28 2013 21:07:22</span><br />
<span style="font-size: x-small;">[ 27.273] (--) Chipset Supported AMD Graphics Processor (0x9802) found</span><br />
<span style="font-size: x-small;">[ 27.277] (II) AMD Video driver is running on a device belonging to a group targeted for this release</span><br />
<span style="font-size: x-small;">[ 27.282] (II) AMD Video driver is signed</span><br />
<span style="font-size: x-small;">[ 27.302] (II) Module fglrxdrm: vendor="FireGL - AMD Technologies Inc."</span><br />
<span style="font-size: x-small;">[ 27.308] (**) fglrx(0): AMD 2D Acceleration Architecture enabled</span><br />
<span style="font-size: x-small;">[ 27.308] (--) fglrx(0): Chipset: "AMD Radeon HD 6310 Graphics" (Chipset = 0x9802)</span><br />
<span style="font-size: x-small;">[ 27.589] (II) fglrx(0): Adapter AMD Radeon HD 6310 Graphics has 2 configurable heads and 1 displays connected.</span><br />
<span style="font-size: x-small;">[ 27.591] (II) fglrx(0): doing swlDriScreenInit</span><br />
<span style="font-size: x-small;">[ 27.591] (II) fglrx(0): swlDriScreenInit for fglrx driver</span><br />
<span style="font-size: x-small;">[ 27.591] (II) fglrx(0): [uki] DRM interface version 1.0</span><br />
<span style="font-size: x-small;">[ 27.591] (II) fglrx(0): [uki] created "fglrx" driver at busid "PCI:0:1:0"</span><br />
<span style="font-size: x-small;">[ 27.591] (II) fglrx(0): [uki] added 8192 byte SAREA at 0x2000</span><br />
<span style="font-size: x-small;">[ 27.592] (II) fglrx(0): [uki] mapped SAREA 0x2000 to 0xb65bd000</span><br />
<span style="font-size: x-small;">[ 27.592] (II) fglrx(0): [uki] framebuffer handle = 0x3000</span><br />
<span style="font-size: x-small;">[ 27.592] (II) fglrx(0): [uki] added 1 reserved context for kernel</span><br />
<span style="font-size: x-small;">[ 27.592] (II) fglrx(0): swlDriScreenInit done</span><br />
<span style="font-size: x-small;">[ 27.592] (II) fglrx(0): Kernel Module Version Information:</span><br />
<span style="font-size: x-small;">[ 27.592] (II) fglrx(0): Name: fglrx</span><br />
<span style="font-size: x-small;">[ 27.592] (II) fglrx(0): Version: 12.10.5</span><br />
<span style="font-size: x-small;">[ 27.592] (II) fglrx(0): Date: Mar 28 2013</span><br />
<span style="font-size: x-small;">[ 27.592] (II) fglrx(0): Desc: AMD FireGL DRM kernel module</span><br />
<span style="font-size: x-small;">[ 27.592] (II) fglrx(0): Kernel Module version matches driver.</span><br />
<span style="font-size: x-small;">[ 27.592] (II) fglrx(0): Kernel Module Build Time Information:</span><br />
<span style="font-size: x-small;">[ 27.592] (II) fglrx(0): Build-Kernel UTS_RELEASE: 3.10.4</span><br />
<span style="font-size: x-small;">[ 27.592] (II) fglrx(0): Build-Kernel MODVERSIONS: yes</span><br />
<span style="font-size: x-small;">[ 27.592] (II) fglrx(0): Build-Kernel __SMP__: yes</span><br />
<span style="font-size: x-small;">[ 27.592] (II) fglrx(0): Build-Kernel PAGE_SIZE: 0x1000</span><br />
<span style="font-size: x-small;">[ 27.592] (II) fglrx(0): [uki] register handle = 0x00004000</span><br />
<span style="font-size: x-small;">[ 27.592] (II) fglrx(0): OpenGL overlay is disabled on non-FIREGL Board.</span><br />
<span style="font-size: x-small;">[ 27.602] (II) fglrx(0): Static shadow buffer initialized.</span><br />
<span style="font-size: x-small;">[ 27.611] (II) fglrx(0): DRI initialization successfull</span><br />
<span style="font-size: x-small;">[ 27.628] (II) fglrx(0): FBADPhys: 0x10600000 FBMappedSize: 0x00816000</span><br />
<span style="font-size: x-small;">[ 27.645] (II) fglrx(0): Initialized in-driver Xinerama extension</span><br />
<span style="font-size: x-small;">[ 27.782] (II) fglrx(0): GLESX enableFlags = 848</span><br />
<span style="font-size: x-small;">[ 27.783] (II) fglrx(0): GLESX is enabled</span><br />
<span style="font-size: x-small;">[ 27.814] Loading extension AMDXVOPL</span><br />
<span style="font-size: x-small;">[ 27.814] Loading extension AMDXVBA</span><br />
<span style="font-size: x-small;">[ 27.827] (II) fglrx(0): UVD feature is enabled(II) fglrx(0):</span><br />
<span style="font-size: x-small;">[ 27.831] (II) fglrx(0): Enable composite support successfully</span><br />
<span style="font-size: x-small;">[ 27.832] (II) fglrx(0): X context handle = 0x1</span><br />
<span style="font-size: x-small;">[ 27.832] (II) fglrx(0): [DRI] installation complete</span><br />
<span style="font-size: x-small;">[ 27.833] (II) fglrx(0): RandR 1.2 enabled, ignore the following RandR disabled message.</span><br />
<span style="font-size: x-small;">[ 27.987] (WW) fglrx(0): Framebuffer compression is disabled by the driver: Video Ram = 262144 kByte</span></blockquote>
then <a href="http://cgit.freedesktop.org/libva/">libva</a>, output of vainfo:<br />
<blockquote>
<span style="font-size: x-small;">libva info: VA-API version 0.33.0</span><br />
<span style="font-size: x-small;">libva info: va_getDriverName() returns 0</span><br />
<span style="font-size: x-small;">libva info: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so</span><br />
<span style="font-size: x-small;">libva info: Found init function __vaDriverInit_0_32</span><br />
<span style="font-size: x-small;">libva info: va_openDriver() returns 0</span><br />
<span style="font-size: x-small;">vainfo: VA-API version: 0.33 (libva 1.1.1)</span><br />
<span style="font-size: x-small;">vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA-API - 0.8.0</span><br />
<span style="font-size: x-small;">vainfo: Supported profile and entrypoints</span><br />
<span style="font-size: x-small;">VAProfileH264High : VAEntrypointVLD</span><br />
<span style="font-size: x-small;">VAProfileVC1Advanced : VAEntrypointVLD</span></blockquote>
last, <a href="http://gitorious.org/vaapi/mplayer/commits/hwaccel-vaapi">vaapi-mplayer</a><br />
play:<br />
<blockquote>
<span style="font-size: x-small;">./mplayer -vo vaapi ../h264_1080p_hp_4.1_40mbps_birds.mkv</span><br />
<span style="font-size: x-small;">MPlayer SVN-r36265-4.6.3 (C) 2000-2013 MPlayer Team</span><br />
<span style="font-size: x-small;"><br /></span>
<span style="font-size: x-small;">Playing ../h264_1080p_hp_4.1_40mbps_birds.mkv.</span><br />
<span style="font-size: x-small;">libavformat version 55.13.102 (internal)</span><br />
<span style="font-size: x-small;">libavformat file format detected.</span><br />
<span style="font-size: x-small;">[lavf] stream 0: video (h264), -vid 0</span><br />
<span style="font-size: x-small;">VIDEO: [H264] 1920x1072 0bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)</span><br />
<span style="font-size: x-small;">Load subtitles in ../</span><br />
<span style="font-size: x-small;">libva info: VA-API version 0.33.0</span><br />
<span style="font-size: x-small;">libva info: va_getDriverName() returns 0</span><br />
<span style="font-size: x-small;">libva info: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so</span><br />
<span style="font-size: x-small;">libva info: Found init function __vaDriverInit_0_32</span><br />
<span style="font-size: x-small;">libva info: va_openDriver() returns 0</span><br />
<span style="font-size: x-small;">==========================================================================</span><br />
<span style="font-size: x-small;">Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family</span><br />
<span style="font-size: x-small;">libavcodec version 55.20.100 (internal)</span><br />
<span style="font-size: x-small;">Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)</span><br />
<span style="font-size: x-small;">==========================================================================</span><br />
<span style="font-size: x-small;">Audio: no sound</span><br />
<span style="font-size: x-small;">Starting playback...</span><br />
<span style="font-size: x-small;">[VD_FFMPEG] Trying pixfmt=0.</span><br />
<span style="font-size: x-small;">[VD_FFMPEG] XVMC-accelerated MPEG-2.</span><br />
<span style="font-size: x-small;">Movie-Aspect is 1.79:1 - prescaling to correct movie aspect.</span><br />
<span style="font-size: x-small;">VO: [vaapi] 1920x1072 => 1920x1072 H.264 VA-API Acceleration</span><br />
<span style="font-size: x-small;">[VD_FFMPEG] XVMC-accelerated MPEG-2.</span><br />
<span style="font-size: x-small;">[VD_FFMPEG] Trying pixfmt=0.</span><br />
<span style="font-size: x-small;">[VD_FFMPEG] XVMC-accelerated MPEG-2.</span><br />
<span style="font-size: x-small;">[VD_FFMPEG] XVMC-accelerated MPEG-2.</span><br />
<span style="font-size: x-small;">Movie-Aspect is 1.79:1 - prescaling to correct movie aspect.</span><br />
<span style="font-size: x-small;">VO: [vaapi] 1920x1072 => 1920x1072 H.264 VA-API Acceleration</span><br />
<span style="font-size: x-small;">xvba_video: XVBA_DestroySurface(): status 2</span><br />
<span style="font-size: x-small;"><br /></span>
<span style="font-size: x-small;"><br /></span>
<span style="font-size: x-small;">Exiting... (Quit)</span></blockquote>
<br />
Video plays flawless <b>(over compiz!)</b>, CPU is offloaded from decoding<b><br /></b><br />
<br />
With Mesa 9.2 we can test also the radeon kernel module + gallium instead of fglrx with libva, but I've not tried yet.Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com0tag:blogger.com,1999:blog-3134400592429621209.post-71097408552279587042012-10-26T12:20:00.000+02:002012-11-27T16:59:08.733+01:00Prioritiesbusy with many stuff, random list:<br />
no ps3, no OpenCL<br />
no code, no bruteforge<br />
badblock, e2fsck, mkfs.ext4, dumpe2fs and a couple of HDD to recover<br />
OpenCL:<br />
code aes-cbc-256<br />
test AMD E2-1800 and E350/ATI6310<br />
Meanwhile...<br />
laptop become headless: recover work and use it as a server<br />
ssh, sshfs, x11 forwarding, rdp<br />
PPC64:<br />
virtualization<br />
<br />
<b>* Here is how I've recovered a corrupted HDD and use it as EXT4 *</b><br />
<br />
# unmount device, at first<br />
umount /dev/sdc1<br />
<br />
1*<br />
# read about checking program<br />
e2fsck<br />
...<br />
-v verbose<br />
-d debugging output<br />
-c call badblocks to add newly badblocks to blacklisted list<br />
-k When combined with the -c option, any existing bad blocks in the bad blocks list are preserved, and any new bad blocks found by running badblocks(8) will be added to the existing bad blocks list.<br />
<br />
e2fsck -v -d -c -k /dev/sdc1<br />
# this method should work, but I'm used to do my own, so go deeper:<br />
<br />
2*<br />
# know the blocksize and pass it at every tool, here 4096<br />
<br />
# read and write the badblock list, get total<br />
dumpe2fs -b -o blocksize=4096 /dev/sdc1 > badlist<br />
wc -l badlist<br />
<br />
# scan for badblocks, skipping already known in badlist<br />
badblocks -b 4096 -s -v -o badblocks.out -i badlist /dev/sdc1<br />
<br />
# manually add badblocks<br />
e2fsck -B 4096 -v -d -k -l badblocks.out /dev/sdc1<br />
# verify<br />
e2fsck -B 4096 -v -d -f /dev/sdc1<br />
<br />
# badblocks count should reflect wc output:<br />
dumpe2fs -b -o blocksize=4096 /dev/sdc1 > total_badblock<br />
wc -l total_badblock<br />
<br />
# format passing the badblock list, large_file needs CONFIG_LBDAF into kernel<br />
mkfs.ext4 -l total_badblock -b 4096 -m 0 -O dir_index,extent,large_file,sparse_super,flex_bg -v /dev/sdc1<br />
<br />
# (manually excluding large_file and huge_file can be done at format time as this:)<br />
# mkfs.ext4 ... -O ^large_file,^huge_file ...<br />
<br />
# once you've done, mount your device.<br />
# as usual, reading man pages can help you a lot!Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com1tag:blogger.com,1999:blog-3134400592429621209.post-34361357382345878812012-07-03T12:52:00.002+02:002012-07-03T12:52:32.941+02:00time to make us questionswould be useful analyze some kind of wordlist to know some statistics, for example:<br />
how many times is used this char? and this one?<br />
which is the most frequent character used?<br />
and again, for example:<br />
in word of 8 chars how many times is used this character? minimum/maximum times?<br />
how many times comes abc, abcd, abcde...? and how much is the minimal/maximum consecutive recursion of the same character?<br />
averages?<br />
and in word of 32 chars length?<br />
analyzing some kind of hashes which will be the results? which are the most frequent characters?<br />
knowing some analysis result we could target better words<br />
<br />
analyze some billion of words will be time consuming, we could program something, but parallelizing with OpenCL would be great!<br />
<br />
blackhole has support for sqlite database and OpenCL yet, lately we can melt this new analyze feature into.<br />
I've just write a few lines, now I'm planning how to store variables in a better way.Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com2tag:blogger.com,1999:blog-3134400592429621209.post-55079052144812495872012-06-04T16:40:00.001+02:002012-06-14T16:16:00.347+02:00bruteforge gets updates!Here some news, I've updated our custom wordlist generator to 0.70r03, listing changes:<br />
. bigger changes at option parsing:<br />
added support to comments on CONFIGFILE, easier comment one line instead of cancel it directly, but also useful leave comment in it.<br />
this surely leads to confusion playing with the last line, where Locked mode uses # to set changing characters, so...<br />
. no more sixth line to use the Locked mode, just use the cli with -L '#exampl#'.<br />
. added hidden -T switch to start the Tutorial mode, it pauses generation when a skip will be performed.<br />
. added -G to generate a default CONFIGFILE to start from, it is also full commented, so read it, edit or take it as a template. When selected an interactive prompt will ask for a file name to write to.<br />
<br />
Every character in charset has two variables (lines two and three):<br />
maximum uses and Pattern lenght, it's from 0.70 that I've implemented a single Pattern length for each character, now I'm working on the new variable!<br />
<br />
Hardcoded rules is: can't never be a triple in word, so when getting aaa it skips to aab; this happens for each character.<br />
I'm working to set this limit for each character as the new variable, something like: maximum number of consecutive same character;<br />
user can use this to use max 4 'd' globally per word, AND '3' to generate word with max consecutives 3 'd', something like:<br />
dddafdee, aabcddde...<br />
or to bypass the hardcoded limit, to say something like:<br />
use max 4 'a', but max '2' consecutive 'a' in word,<br />
use max 2 'b', but max '1' consecutive 'b' in word,<br />
use max 3 'c', but max '2' consecutive 'c' in word,<br />
use max 4 'd', but max '3' consecutive 'd' in word...<br />
to get<br />
aabaabcc<br />
aabaabcd<br />
aabaabdc<br />
...<br />
<strike>This is a work in progress, but it's easy to implement; while awaiting this new feature, feel free to try my latest 070r03 there on the right!</strike><br />
if you get any issue, leave a comment below.<br />
<br />
<b>EDIT:<br />
go directly for 070_r04 and use -G to generate default CONFIGFILE, I'll use this method to keep uptodate changelog/instruction/rules througth comments!</b><br />
Every revision prints out its updated instructions now, avoiding confusion<br />
<br />
yes, in the example I've forgot that abc will be skipped... eheh<a href="http://3.bp.blogspot.com/-gtsJWxNAUUI/T9nnEMgrj4I/AAAAAAAAADs/IimJUh41RDs/s1600/shot2.png" imageanchor="1" style="clear:right; float:right; margin-left:1em; margin-bottom:1em"><img border="0" height="320" width="214" src="http://3.bp.blogspot.com/-gtsJWxNAUUI/T9nnEMgrj4I/AAAAAAAAADs/IimJUh41RDs/s320/shot2.png" /></a><br />
./bruteforge advanced3 -q<br />
daccdabdaac, 11 chars, attempt #1000000<br />
bdaddcacacda, 12 chars, attempt #2000000<br />
dcbdcbdadccb, 12 chars, attempt #3000000<br />
adbcbcbadadac, 13 chars, attempt #4000000<br />
bdabdcbdcdacb, 13 chars, attempt #5000000<br />
cbdcbaacdbaab, 13 chars, attempt #6000000<br />
dbcaccacdadad, 13 chars, attempt #7000000<br />
abaacacdbdcdbc, 14 chars, attempt #8000000<br />
acddabdccbaadb, 14 chars, attempt #9000000<br />
baccababdccdab, 14 chars, attempt #10000000<br />
bccbdaacaacddd, 14 chars, attempt #11000000<br />
caacdbddcbadab, 14 chars, attempt #12000000<br />
cbdadbcacbaacd, 14 chars, attempt #13000000<br />
cdcadcacbaabdd, 14 chars, attempt #14000000<br />
dbcbccaadbabdc, 14 chars, attempt #15000000<br />
ddbdcdaaccbacb, 14 chars, attempt #16000000<br />
abdbdccabadcbda, 15 chars, attempt #17000000<br />
acdcdcdabaadbcb, 15 chars, attempt #18000000<br />
bababddcaddccac, 15 chars, attempt #19000000<br />
badddcadbccbcab, 15 chars, attempt #20000000<br />
bccdadaabdbdacb, 15 chars, attempt #21000000<br />
bdccdabaacdbdba, 15 chars, attempt #22000000<br />
cadbdbadbcacdcb, 15 chars, attempt #23000000<br />
cbdcabacadcbdba, 15 chars, attempt #24000000<br />
cdbabdaccacdbad, 15 chars, attempt #25000000<br />
dacdcacabdbacdb, 15 chars, attempt #26000000<br />
dbddbcaababadcc, 15 chars, attempt #27000000<br />
ddbccbcabdabaac, 15 chars, attempt #28000000<br />
abdcbdcaacdbadcb, 16 chars, attempt #29000000<br />
adbcbcbdadcdcaba, 16 chars, attempt #30000000<br />
baccbcbdaadbdacd, 16 chars, attempt #31000000<br />
bcbcadacbaddadbc, 16 chars, attempt #32000000<br />
bdbdccbdaabdcaac, 16 chars, attempt #33000000<br />
cacdbdabdccbabda, 16 chars, attempt #34000000<br />
cbdcadddabacbcab, 16 chars, attempt #35000000<br />
cdbdccbdcaabdaab, 16 chars, attempt #36000000<br />
dbadccbcbadabdac, 16 chars, attempt #37000000<br />
dcdababaacddbccb, 16 chars, attempt #38000000<br />
Reached max word's length of 16 chars, last word 'dddcdccbcbababaa', attempt #38463782<br />
<br />
this is with 4 characters, doing -o you'll get your targeted wordlistAnonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com0tag:blogger.com,1999:blog-3134400592429621209.post-36304594591073436212012-03-30T13:23:00.003+02:002017-01-20T09:31:20.718+01:00developing bruteforge 0.70after 20 revisions the code was cleanup and improved, here I'll try to explain the core changes:<br />
<br />
. no more one unique global pattern_length for all character set (no more -p swich)<br />
we can set now a pattern_lenght for every char, this can lead to user confusion, so I'll try to eleborate more:<br />
the third line on CONFIGFILE is now readed as single pattern_lenght for the respective char listed at first line (the character set), so we can now exclude patterns like: abcd, tu, mnopq, xyz... but include abc, mnop, xy<br />
user can get the same effect of old default -p 3 by feeding the third line with '3' for all the chars listed at first line.<br />
<br />
. added a simple, but useful tutorial mode<br />
this mode let user check what's goin'on when a skip will be done stopping generation of word (until user input), user can read output to understand how bruteforge is doing a jump into bruteforce generation flow, to help understanding how setup CONFIGFILE about second and third line, maybe the hardest to get by user;<br />
this mode it's only useful to understand! (yes, understand: that's seems very important)<br />
<br />
. shifted variant will be a mode<br />
I've never added this mode due generation of duplicated, who want skip useless words but reelaborate something agaist duplicated records?<br />
so I've thinked to add this features as -F (the Filter mode), where user must pass an existent unique wordlist to perform word shifting on STDOUT, but validating every shifted variant over criteria!<br />
user will be warned about duplicated words, so user should filter later them out with some other technique, that's seems finally the right implementation to this mode!<br />
<br />
. linking gmplib static by default, and some bug (buffer overflow) were fixed, memory accesses are optimized (I've to test if I got improvement also on ppc)<br />
<br />
. new skipping rules can be easily added (if you have some ideas, leave a comment below)<br />
<br />
UPDATE<br />
here the new <a href="http://www.mediafire.com/file/0frxgez9ylss24l/bruteforge">bruteforge 0.70r02</a>, x86 ELF 32-bit executable, statically linked and stripped, for free!<br />
post your question, user<br />
I've to update documantation aswell.<br />
<br />
UPDATE #2, early 2017<br />
<a href="http://masterzorag.blogspot.it/2017/01/bfnew-open.html" target="_blank">bruteforge is being rewritten</a>Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com0tag:blogger.com,1999:blog-3134400592429621209.post-65287031236625264812012-03-06T11:22:00.003+01:002012-03-06T11:24:07.757+01:00bruteforge 0.6r19<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-uLNz5emZ-zg/T1XjRObn8QI/AAAAAAAAADg/vDTLHP7H7Z8/s1600/shot.png" imageanchor="1" style="margin-left:1em; margin-right:1em"><img border="0" height="200" width="135" src="http://3.bp.blogspot.com/-uLNz5emZ-zg/T1XjRObn8QI/AAAAAAAAADg/vDTLHP7H7Z8/s200/shot.png" /></a></div>
. Added -c 0 to skip all couples of char<br>
. Added missing -h option<br>
. Cache Fixedset_index into P array instead of calling idx_in_item everytime: speedup<br>
. Cosmetic changes<br>
. Compiled static against gmplib<br><br>
Grab i386 binary from <a href="http://www.mediafire.com/?f23g2531r188f09">here</a>Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com0tag:blogger.com,1999:blog-3134400592429621209.post-54754493213194768182012-02-16T16:28:00.000+01:002012-02-16T16:38:46.328+01:00libgmp.so.10: cannot open shared object fileTo everyone having this issue... bruteforge binary is linked with only one shared library:<br>
You have to locate the library:<br>
# find / -name libgmp.so<br>
/usr/lib/libgmp.so<br>
...<br>
1. if you have no output you have to install gmp (gmplib.org), ask your package manager about;<br>
in my system is located in a usual place such as ‘/usr/local/lib’ or ‘/usr/lib’, so bruteforge can load in memory the library and run!<br>
<br>
2. If the library is not located in one of these directories it must be added to the load path.<br>
The simplest way to set the load path is through the environment variable LD_LIBRARY_PATH.<br>
Anyway, get a look at <a href="http://www.network-theory.co.uk/docs/gccintro/gccintro_25.html">here</a> and use your mind.<br>
<br>
3. If you have a different version of that library, try to update the symbolic link, letting point libgmp.so.10 to your installed version, for example now I have this:<br>
# ls -ln /usr/lib/libgmp.so*<br>
lrwxrwxrwx 1 0 0 16 Feb 16 15:41 /usr/lib/libgmp.so -> libgmp.so.10.0.4<br>
lrwxrwxrwx 1 0 0 16 Feb 16 15:41 /usr/lib/libgmp.so.10 -> libgmp.so.10.0.4<br>
-rwxr-xr-x 1 0 0 399968 Feb 16 15:41 /usr/lib/libgmp.so.10.0.4<br>
first two rows are symbolic links to the real library libgmp.so.10.0.4, watch also file dimensions...<br>
<br>
4. If you can't resolv this issue, <b>grab this <a href="http://www.mediafire.com/?lnqr9ehhzhdpvsn">static version</a> of bruteforge</b> and you'll get it running!Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com0tag:blogger.com,1999:blog-3134400592429621209.post-37556814745076485952012-01-25T12:21:00.000+01:002012-01-25T12:21:13.523+01:00OpenCL + PS3: Improvements!To anyone follow this story, here some things to see!<br>
I'm doing Pairwise Master Keys with all 7 compute units on a PS3 via OpenCL, check out my three kernel's output:
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-e9PNvQ3XjBU/Tx_gJXAfdKI/AAAAAAAAAC8/lu1WEmmQB_M/s1600/cl1.png" imageanchor="1" style="margin-left:1em; margin-right:1em"><img border="0" height="320" width="315" src="http://2.bp.blogspot.com/-e9PNvQ3XjBU/Tx_gJXAfdKI/AAAAAAAAAC8/lu1WEmmQB_M/s320/cl1.png" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-SyxnrAvfuiI/Tx_gOs22T8I/AAAAAAAAADI/JcsYcx8YclM/s1600/cl2.png" imageanchor="1" style="margin-left:1em; margin-right:1em"><img border="0" height="320" width="315" src="http://2.bp.blogspot.com/-SyxnrAvfuiI/Tx_gOs22T8I/AAAAAAAAADI/JcsYcx8YclM/s320/cl2.png" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-ebO8qHevhGI/Tx_gSX4CSkI/AAAAAAAAADU/sr39qQ2O8Sk/s1600/cl3.png" imageanchor="1" style="margin-left:1em; margin-right:1em"><img border="0" height="320" width="315" src="http://1.bp.blogspot.com/-ebO8qHevhGI/Tx_gSX4CSkI/AAAAAAAAADU/sr39qQ2O8Sk/s320/cl3.png" /></a></div>
This is always pyrit related, but it works alone (for now), porting to a pyrit plugin will take the last step of my interests.<br>
Was January 14, 2011 when I've told: <a href="http://masterzorag.blogspot.com/2011/01/pause-read-code.html"><i>"Correctly improve that is possible, we have tools."</i></a>
I was right, I've wrote the fastest implementation ever!<br>
Now I need to improve more, there's again!Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com4tag:blogger.com,1999:blog-3134400592429621209.post-20595344997811720622011-12-27T18:09:00.000+01:002011-12-27T18:10:41.346+01:00blackhole: added sha1_process variants<div class="separator" style="clear: both; text-align: center;">
some of blackhole in action:<br>
<a href="http://4.bp.blogspot.com/-5z-X8lASGSM/Tvn1OzEZpKI/AAAAAAAAACw/6mr-rk_n7OE/s1600/snapshot.png" imageanchor="1" style="margin-left:1em; margin-right:1em"><img border="0" height="188" width="320" src="http://4.bp.blogspot.com/-5z-X8lASGSM/Tvn1OzEZpKI/AAAAAAAAACw/6mr-rk_n7OE/s320/snapshot.png" /></a></div>
<br>
. removing old hashfile<br>
. counting records in database<br>
. listing computed pmk grepping the correct one<br>
. exporting to a new cowpatty_hashfile<br>
. run cowpatty attack over test libpcap capture file<br>
<br>
cutted out cl computation, I've implemented a different vectorized sha1_process (I've two now).<br>
results of this variant are poorly the same as first one on a 8400GS (need to check on the spus: they're the vector units).<br>
this one needs more _private space to compute (need to stage some on _local), but I can set a larger NDRange.<br>
thinking to write something about on Google Docs (need time).<br>
good computation, good output.Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com0tag:blogger.com,1999:blog-3134400592429621209.post-89913573314211683862011-12-05T17:36:00.001+01:002011-12-05T18:16:01.347+01:00"This is not hacking, it's crypto!"I've wrote a single program called blackhole, it:<br>
<b>.</b> Stores words,<br>
<b>.</b> Computes pmk against an essid,<br>
<b>.</b> Stores back results into a simple sqlite database,<br>
<b>.</b> Exports computed pmks to a compatty hashfile to perform the attack later with aircrack-ng or cowpatty.<br><br>
And here everybody'll say: "So why you should use this? Just use pyrit!"<br>
Pyrit is NOT optimized to run on the Cell/BE , I'm doing this to improve the speed of computing pmks with all 7 Spe in a PS3.<br><br>
Just to let you know that I'm back to work over the OpenCL code now!<br>
I'm thinking to elaborate some of my idea, writing down to let you, interested reader, understand and maybe found better solutions;<br>
Was Feb this year when I've got some speed improvements without knowing C, how can do the job without C basis?<br>
Months spended reading and learning a lot of stuff, sources of aircrack-ng, stuff as genpmk.c, sha1-sse2.S, pyrit, threading, the sqlite library...<br>
This is the power of open source, I was able to realize something I've in my mind, for free!<br>
Don't miss my next new video "blackhole's evidence".<br>Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com0tag:blogger.com,1999:blog-3134400592429621209.post-27832965134708747492011-11-10T15:44:00.000+01:002011-11-10T15:45:27.950+01:00What's up next?Busy at the moment, but let me know you out there what's going on:<br>
bruteforge will be updated adding the 'Shifted variant' mode set, Niclas already knows what it does!<br>
blackhole is importing, computing pmk and exporting to cowpatty fie as pyrit/airolib-ng/genpmk does!<br>
About computing, I'm using the CPU in one single thread; about exporting, results are the same: diff tells me that: <i>binary files are identical!</i><br>
Now I've to implement the OpenCL code, <b>my vectorized one(!)</b>; I can skip the stock pyrit cl implementation now, I've got error checking with SSE2 or quering blackhole_sqlite database also!<br>
Time to give power to the Cell, targeting my <i>'too long time idle' <b>7 SPU!</b></i>Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com0tag:blogger.com,1999:blog-3134400592429621209.post-39002541153132127232011-09-19T14:15:00.001+02:002011-09-19T14:15:16.263+02:00What (da fuck) I'm doing now?!bruteforge does words, where store those? I'm writing blackhole.<br>
blackhole is a database engine with import/export capability to/from an sqlite database, the third piece of code does pmk computation via OpenCL (I'm targeting the PS3 on all 7 SPE!), an optional fourth piece will export to a cowpatty table to externally perform the attack.<br>
All is written in C, linking gmp, sqlite, openssl; OpenSSL? Yes, blackhole starts doing pmk hash using the CPU with SSE2, I'm using for my tests the SHA-1 SSE2 implementation (C) 2008 by Alvaro Salmador, (easy, I'm not spreading anything, same code was implemented in pyrit too...)<br>
I've melt that code to get result checking, was a new stuff, as sqlite. Many useful thing to know, as ever.<br><br>
So what? One single thread export from sqlite db, compute pmk and store back result into sqlite db doing a little more of 500 pmk/s.<br>Sounds good, now I'm thinking how store the pmk: a uchar[32], or better: 8 uint32, 32byte, let me better explain:<br>
After doing the math the result is 8 uint32, 8*4byte = 32byte, by the way the hash output is obtained by reading as uchar (byte after byte) the same 32byte, so simply I'm thinking to store those 8 uint32 into 8 sqlite coloums, in this way sqlite will stores max 64byte per record using INTEGER type.<br>
The fouth piece will then read computed INTEGER results with atoi(), stores into a 32byte before get written to a cowpatty table.<br>
Why? uchar[32] can be full of NULL and friend... How to store an uchar[32] into sqlite coloumn using BLOB type?<br>Storing as hexadecimal string will be the same (64byte per record), but every uchar must be hexcoded importing and then hexdecoded while exported...<br>Storing as binary? New stuff to learn, anyone can point examples?
Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com0tag:blogger.com,1999:blog-3134400592429621209.post-70187678161009582332011-09-12T13:38:00.000+02:002011-11-02T12:31:44.454+01:00bruteforge 0.6r18, here comes a new rule!my friend don't want more than N couple of same char in word, ex:<br />
Valid:<br />
02AE7<b>AA</b>BF97<br />
2BE<b>FF</b>A29151<br />
Not valid:<br />
00<b>EE</b>7A<b>BB</b>F97<br />
we can now append -c 1 to let bruteforge compose with max 1 couple.<br />
grab the latest binary <a href="http://www.megaupload.com/?d=IJA0GO9A">here</a>.Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com0tag:blogger.com,1999:blog-3134400592429621209.post-13528164672834451892011-06-22T23:32:00.002+02:002011-07-04T15:00:48.819+02:001UP<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-PSGW-9DJz4U/ThG5RLdBNTI/AAAAAAAAACk/LjSPDkg4mPM/s1600/7spu.jpg" imageanchor="1" style="margin-left:1em; margin-right:1em"><img border="0" height="240" width="320" src="http://1.bp.blogspot.com/-PSGW-9DJz4U/ThG5RLdBNTI/AAAAAAAAACk/LjSPDkg4mPM/s320/7spu.jpg" /></a></div>Base system is less than 800M, I've got one more spu.<br />
In meantime I've wrote another tool to interface with bruteforge, more to come.Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com0tag:blogger.com,1999:blog-3134400592429621209.post-89561006168679640562011-05-05T20:06:00.002+02:002011-11-23T16:30:34.552+01:00missing ln -supgrading to IBM OpenCL Development Kit for Linux on Power 0.3, restarting F12 troubles...<br />
Specs says tested on:<br />
Red Hat Enterprise Linux 5.5, 5.6 and 6.0;<br />
SUSE® Linux Enterprise Server 11 SP 1;<br />
I test Fedora12, ppc ends at 12.<br />
<br />
Install logs tells you that all went fine, but xlcl start script fails!<br />
To update succesfully invoke this missing parts:<br />
cd /opt/ibmcmp/xlc/opencl/0.3/etc/<br />
ln -s xlc.cfg.rhel.gcc444 xlc.cfg.rhel12.gcc444<br />
ln -s /usr/lib/libIBMOpenCL.so /usr/lib/libOpenCL.so<br />
<br />
A voice in a loop: "... upgrade, patch your firmware, free another spe, unlock all... "!Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com0tag:blogger.com,1999:blog-3134400592429621209.post-86964086183102959432011-02-17T13:30:00.001+01:002011-09-19T13:21:52.106+02:00pmk, dissected<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-itlXq5xzF0M/TV0TXVqyZaI/AAAAAAAAABo/fyl-vP0f-2U/s1600/valid.png" imageanchor="1" style="margin-left:1em; margin-right:1em"><img border="0" height="292" width="320" src="http://3.bp.blogspot.com/-itlXq5xzF0M/TV0TXVqyZaI/AAAAAAAAABo/fyl-vP0f-2U/s320/valid.png" /></a></div>As seen, pyrit opencl does about 1200... i've wroted a kernel that grab data as seen <a href="http://code.google.com/p/pyrit/issues/attachmentText?id=66&aid=2654657721946226856&name=draft&token=fb9865f27cfa57794e24ff3e934e7ccd">here</a> to get processed by kernel as uint4 vectors, theorically this should does x4, and it does!<br />
What's the big news? Output data are verified with tested vectors against 8192 sha1 rounds, or better;<br />
First 20 of 32 byte of pmk are good with mine implementation, I've now enough C/OpenCL basis to target the differents cl address spaces provided, made use of _local and async_worg_group_copy and maybe redesign the algo to do 20+12 in the same time!<br />
I've gotta go now, this fucking work...Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com2tag:blogger.com,1999:blog-3134400592429621209.post-90906335083133632582011-01-14T16:57:00.002+01:002011-01-14T19:03:22.626+01:00pause, read, startOpen the door to gameos means that some developers will start to know the Cell/BE and its architecture, we all know its potentials.<br />
Of curse, we are seeking <i>the return of linux</i>, with one more spu for us.<br />
Now that I've gain some C basis and finally nvidia-toolkit 3.2 can compile fine (the stock pyrit opencl kernel back to run on my cl_developing mobile 8400gs, I can't develop on PS3 only everytime) I'm back focusing to <i>improve performance of OpenCL implementation of PMK hash on the Cell/BE</i>, <a href="http://code.google.com/p/pyrit/source/browse/#svn%2Ftrunk%2Fcpyrit_opencl">existing implementation</a> computes 1200 pmk/s;<br />
Correctly improve that <b>is</b> possible, we have tools.<br />
<br />
Some stuff<br />
<a href="http://www.google.it/url?sa=t&source=web&cd=2&ved=0CCIQxQEwAQ&url=http%3A%2F%2Fdocs.google.com%2Fviewer%3Fa%3Dv%26q%3Dcache%3A2N6rMQ3xLn4J%3Aprojekter.aau.dk%2Fprojekter%2Ffiles%2F17901417%2FWPA_password_cracking__Parallel_processing_on_the_Cell_BE_-goup1045.pdf%2BWPA_password_crack%26hl%3Dit%26gl%3Dit%26pid%3Dbl%26srcid%3DADGEESjJ9xsyqj7ke65RQ3qwTocVQxh5MezCfGOcczpIos6rayC3LnXj5n9JbWxCf6yrHIk9gpbptvykgcZLe4ocfOQsFiQjdeL3mWpJJPEmzT8lZFlqcgUENCWJYcWWeYZDJx1hrvia%26sig%3DAHIEtbRYjtKBMGzu2lvxBHhyjmjMq08tJQ&rct=j&q=WPA_password_crack&ei=SEswTanEIpH6sgaq7PWSCg&usg=AFQjCNEVqiswezABXnaPpmCdPhpHafTNQw&sig2=qyHi6gPe8_2uXUkQBu-eTg&cad=rja">WPA password cracking</a><br />
<a href="http://www.elliptique.net/wiki/doku.php?id=fedora12-ps3">fedora12-ps3 setup</a><br />
<a href="http://www.blachford.info/computer/Cell/Cell0_v2.html">Cell Architecture Explained</a><br />
<a href="https://www.ibm.com/developerworks/forums/thread.jspa?threadID=303489&tstart=30">Hints from IBM forum</a><br />
<a href="http://www.streamcomputing.eu/blog/2010-04-22/difference-between-cuda-and-opencl">CUDA/OpenCL differences</a><br />
<a href="http://royger.org/opencl/?p=12">OpenCL implementation of Sha1 hashing algo</a>Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com4tag:blogger.com,1999:blog-3134400592429621209.post-40162570113523133672010-12-10T01:45:00.012+01:002011-01-11T19:01:29.664+01:00...bruteforge has been C revamped!I've completed the first C version, time to release;<br />
All features of bruteforge 0.56 are implemented, with less skips, I've added full support to Extended ASCII Codes; (you can use your favourite 'èòà ìù...')<br />
bruteforge 0.6x, linux/elf386 <a href="http://mz03.netfirms.com/C/bruteforge"><b>here</b></a><br />
documentation will be posted <a href="https://docs.google.com/document/d/1m6iuGvLblfDD2AErYZ-6PMdk7LKQjATyBVYBCunFKi0/edit?hl=en"><b>here</b></a><br />
<br />
I was focused on a new function, the <b>'Filter Mode'</b>, from now you can pass your favourite wordlist to trim down over your favourite criteria mix...<br />
So, not only generate wordlist in conditional way, but we can start filtering huge wordlists! (...this project seems moving like a squid...)<br />
<br />
A diff about performance versions, I've done a simpe test, generating 100.000.000 words in a lowercasealpha, starting from 'a':<br />
0.56 generates those in real 18m25.013s, doing 90.496 words/sec;<br />
0.612 do the same job in real 0m24.451s, doing 4.089.812 words/sec;<br />
In this test performance gain is <b>45.19x</b>, I have no reason to maintain the python version,<br />
anyway, script is open...Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com12tag:blogger.com,1999:blog-3134400592429621209.post-42287013433765816932010-11-15T19:52:00.002+01:002010-11-16T20:16:04.562+01:00...quietly...First part is over, with something added like full support to Extended ASCII Codes, less skips and more speed, (almost x16 faster of python code when prints to terminal), code is running;<br />
user have to define a 'template' text file like previously for advanced, program reads first 4 lines as:<br />
charset<br />
maxchars<br />
starting word<br />
ending word<br />
it summarizes criteria to understand those combinations that will be skipped;<br />
you can have multiple 'settingfiles' to run bruteforge over, it prints out generated words;<br />
I've to made -lp -n -v -q customizables from commandline, add the fixed mode and more...<br />
<a href="http://mz03.netfirms.com/C/snapshot1.png">here</a> a snapshot, follow a short demo from the cold North! Thanks!<br />
<object width="400" height="325"><param name="movie" value="http://www.youtube.com/v/qAVpL-KalD0?fs=1&hl=en_US&color1=0x3a3a3a&color2=0x999999"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/qAVpL-KalD0?fs=1&hl=en_US&color1=0x3a3a3a&color2=0x999999" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="400" height="325"></embed></object>Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com0tag:blogger.com,1999:blog-3134400592429621209.post-79476885886490793042010-10-21T14:26:00.002+02:002010-10-21T22:33:55.442+02:00Meanwhile, at lower levels...Writing OpenCL code needs some C knowledges, in time I've thinked about PMK algo, Cell/BE, python, and C...<br />
How can C code run faster, pointers, arrays and structs, ints, memory allocation/alignment and more...<br />
Time to see what can be done in C, so how easy can be porting mine bruteforge python script other than code written by others?<br />
I've wrote this time ago, code and algorithms are in my mind! I want to see the diffs, and learning C for my needs, of course.<br />
As expected, C uses less memory (68kb over 1990Kb) and runs moOore faster, it generates 10.000.000 words in 3.384s, the python version computes the same numbers of words in 1m46.062s, so I've got a x31 speedup in front of 1/31 in memory!<br />
My new code isn't well optimized, I'll spend some more time with it, but actual results are impressive; so I'm working to complete the C port of bruteforge with renewed logics; all will be in function of the -so called- 'advanced mode', so <b>users can sets a custom charset (including special and spaces characters) and assign a maximum number of use for every char to compose a word!</b><br />
Patterns eventually excluded like 'abc', 'stuv'... due to consecutiveness will be ever skipped by setting pattern's length, this also for consecutive repetition of same char like 'aaa', 'rrrr'... but I'm re-evaluating others skips like inversed consecutives that in case can skip too often probable words!<br />
When completed, maybe I'll learned C better (a little bit) to expand functionalities, like transform words to compute some kind of hash...<br />
Mine PS3 don't play games, but is hungry of ints!Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com1tag:blogger.com,1999:blog-3134400592429621209.post-13140474678021596712010-05-20T14:10:00.002+02:002010-07-05T15:38:01.120+02:00"Cops can't stop me!", but I need fuel!<a href="http://mz03.netfirms.com/py/30000.png"><img alt='Screenshot' src='http://mz03.netfirms.com/py/30000.png' width=400></a><br />
Can't release anything yet, I've tested, but sometimes got wrong results!<br />
Too busy at the moment, I'm not a real programmer, I've to spend some time working now...<br />
I'm not surrendered, but working changes needs study.<br />
By the way, IBM has released an upgrade to OpenCL, with big changes about device control and more, but I haven't test yet.<br />
I've to end up with a simple host code to run the cpyrit_opencl alone and setup timing to see if any changes are good!Anonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com10tag:blogger.com,1999:blog-3134400592429621209.post-60420018209050737252010-04-30T22:01:00.006+02:002010-05-19T04:03:20.457+02:00Mine PS3 hits 7000 PMKs/s!<a href="http://mz03.netfirms.com/py/7000.png"><img alt='Screenshot' src='http://mz03.netfirms.com/py/7000.png' width=400></a><br />
Small changes in the code about feeding and organizing the WorkSizes, but there are other improvements we can do about; personally I have two of those, one is make use of uint4 power, the other regards the use of couples of WorkItem per WorkGroup...<br />
I'm passed from 1200 to 7000 PMKs without changes in the kernel!<br />
There is now a place in the performance-graph? Eh ehAnonymoushttp://www.blogger.com/profile/08981635176525610959noreply@blogger.com3