Posts

Showing posts from 2014

Install Microsoft Office in Ubuntu 14.04 64bit

Today i need run Microsoft Office in Ubuntu 14.04 64bit. I think using wine
#apt-get install wine
#env WINEARCH=win32 WINEPREFIX=~/.wine32 winetricks dotnet20 msxml6 corefonts
After install, you must run Winetricks (in Wine menu),
Chose "Select the default wineprfix", then chose "Run winecfg". Tab Application, in Windows Version chose Windows 7.
Tab Libraties, remove *msxml6 and add msxml6, gdiplus, riched20. Change all to navtive.
Install Microsoft Office (setup.exe):
##env WINEARCH=win32 WINEPREFIX=~/.wine32 /path/to/setup.exe
Enjoy now!
Update:
I used playonlinux to install Office. You can use Office 2007 with your license key. To run Unikey, you must copy unikey to office driver. Re-scan in playonlinux to get icon.
-----------------------------------------------------------
Thanks for reading
--------------------------------------------------------------------------
Security Research
All my Lab:
Linux Lab -- window and Cisco Lab
to be continued - I will update more.

Install GDB 7.8 support python 2 for PEDA

Now, i am using Ubuntu 14.04 LTS 64bit. But don`t have mirror for downgrade GDB. (Hanoilug mirror for 32bit only).
So i must install GDB 7.8 support python2.
First, install lib:
#sudo apt-get install libncurses5-dev
#apt-get install python2.7-dev texinfo
Extrack gdb tar packet. cd
#./configure --disable-werror --with-python=python2
#make #make install
Then remove, check GDB version (Now ubuntu GDB is 7.7.1). If return 7.8 is ok, if not you can create symlink:  #cd /usr/bin #rm -rf gdb #ln -s /path/to/gdb-7.8/gdb/gdb gdb
Install Peda anh using now :)
Update: Now peda supported python3. :)
------------------------------------------------------------
Thanks for reading
--------------------------------------------------------------------------
Security Research
All my Lab:
Linux Lab -- window and Cisco Lab
to be continued - I will update more.

Downgrade GDB support Peda.

I setup new computer with ubuntu 14.04. When install GDB, version is 7.7. So GDB complied with Python 3. OMG. Peda run only with Python 2:
Traceback (most recent call last):
  File "~/peda/peda.py", line 23, in
Exception: Python3 is not supported at the moment, downgrade you GDB or recompile with Python2!
I had 2 ways:
Recompile GDB --with-python=python2
Downgrade GDB.
I chosed downgrade GDB. So i need one mirror support older GDB: http://virror.hanoilug.org/ubuntu/virror_precise_sources.list
You need synaptic. Search GDB, chose Package/Force Version/Chose 7.4. Confirm and install now.
Peda run ok!


------------------------------------------------------------
Thanks for reading
--------------------------------------------------------------------------
Security Research
All my Lab:
Linux Lab -- window and Cisco Lab
to be continued - I will update more.

Install XDebug in Ubuntu with Netbean.

#sudo -i (need root permison)
1. Install PHP Devel:
#apt-get install php5-dev php-pear
2. Instrall xdebug:
#pecl install xdebug
3. If success, find xdebug.so add xdebug to php.ini:
# find / -name 'xdebug.so' 2> /dev/null
/path/to/xdebug.so
# vim /etc/php5/apache2/php.ini
Add:
zend_extension=/path/to/xdebug.so
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
4. Restart Apache. Test open phpinfo file to confirm xdebug loaded.
5. Open Netbean, active php (create PHP Project). Confirm xdebug in Tool/Option/PHP

------------------------------------------------------------
Thanks for reading
--------------------------------------------------------------------------
Security Research
All my Lab:
Linux Lab -- window and Cisco Lab
to be continued - I will update more.