Bypassing Corporate firewalls using SSH
Using your Home proxy server to access various blocked sites from your office
http://daniel.haxx.se/docs/sshproxy.html
http://dag.wieers.com/howto/ssh-http-tunneling/
http://sebsauvage.net/punching/
Accessing Office PC from Home using SSH Forward
http://manugarg.freezope.org/notes/ssh_tunneling/index.html
Warning : Information Security is very strict in most of the Corporates. So do it at your own risk.
Modifying the cramfs image
1. Mount the cramfs file system image as a loop device. This will be read-only image.
2. Create a new directory (e.g $HOME/initrd-new) which will be used for modifying the image (RW mode)
3. Go to the mounted cramfs image directory and get the list of files using the following command
-
find / > /tmp/filelist.txt
4. Use cpio to copy the contents from the mounted directory to the new directory
- cat /tmp/filelist.txt | cpio -pdm /$HOME/initrd-new
5. modify the contents in the new directory as required.
6. Once the changes are done, use mkcramfs to create the cramfs image again.
- mkcramfs /tmp/new-initrd new-initrd
Useful References – Android Internals
http://honeypod.blogspot.com/2007/12/initialize-libc-for-android.html
http://honeypod.blogspot.com/2007/12/shared-library-hello-world-for-android.html
http://honeypod.blogspot.com/2007/12/dynamically-linked-hello-world-for.html
http://honeypod.blogspot.com/2007/12/compile-android-kernel-from-source.html
http://benno.id.au/blog/2007/11/29/android-update-systemimg
http://benno.id.au/blog/2007/11/29/android-qemu
http://benno.id.au/blog/2007/11/26/what-is-android
http://benno.id.au/blog/2007/11/21/android-neo1973
http://benno.id.au/blog/2007/11/18/android-runtime-strace
http://benno.id.au/blog/2007/11/18/android-framework-startup
http://benno.id.au/blog/2007/11/13/android-under-the-hood
http://benno.id.au/blog/2007/11/14/android-busybox
http://euedge.com/blog/2007/12/06/google-android-runs-on-sharp-zaurus-sl-c760
http://davanum.wordpress.com/2007/12/09/android-invoke-jni-based-methods-bridging-cc-and-java
http://nemustech.blogspot.com/2007/12/android-porting-to-real-target-hw.html
http://nemustech.blogspot.com/2007/12/android-porting-notes.html
Useful References – Linux ELF format
http://www.linuxforums.org/misc/understanding_elf_using_readelf_and_objdump_2.html
http://www.airs.com/blog/archives/category/programming/page/5/
http://www.securityfocus.com/infocus/1872
http://plan99.net/~mike/blog/2006/08/25/elf-and-program-loading/
http://plan99.net/~mike/blog/page/2/
http://em386.blogspot.com/2006/10/resolving-elf-relocation-name-symbols.html
http://packetstormsecurity.org/papers/bypass/GOT_Hijack.txt
http://www.greyhat.ch/lab/downloads/pic.html
http://www.linux-foundation.org/spec/book/ELF-IA32/ELF-IA32.html#STD.IA32.ABI.4
http://neuronicimpulses.blogspot.com/2005_12_01_archive.html
How to access internet from Linux via Microsoft’s NTLM Proxy Server
Most corporates allow access to internet through Microsoft’s Proxy Server which uses the properitory NTLM authentication. Even though most of the linux communication software provides some basic proxy support, none support NTLM authentication and hence accessing internet from linux is not possible.
In order to do the same from the Linux PC, you can install the NTLM Application Proxy Server (ntlmaps) from http://ntlmaps.sourceforge.net/ on your windows machine, configure it as specified in the README and run the same on your windows machine. Then configure your ntmaps hostname and port as the proxy server’s hostname and port in your linux machine. For example, you can configure the environment variable “http_proxy” to ntlmaps hostname:port, if you want wget to access the internet via NTLM proxy. Similarly most clients will have their own of defining the proxy. Check the corresponding manual on how to do the same.
Generate BREW .mif file from Command line
Most of the BREW developers know how to create BREW .mif files using a BREW mif editor. But with the latest BREW SDK Tools 1.0.1, we can create the .mif file using the the BREW resource compiler (similar to creating .bar resource files).
For this, we have to create a .mfx file which is a XML representation of .mif binary file similar to .bar file’s XML equivalent .bfx file. Then we can use the brew resource compiler (brewrc) to generate the .mif file from .mfx file as shown below.
“C:\Program Files\BREW SDK Tools 1.0.1\ResourceEditor\brewrc” -o ./mif/testing.mif
Continue reading @ http://www.devx.com/wireless/Article/33417/1954?pf=true
Switch Case Vs If else performance
Most people know that performance of switch/case is better than an if/else statement, if the case values are narrowed. But many doesnt know the reason why switch/case statement performance is better. I came across this tutorial which discusses on the assembly view of switch/case for different scenarios like narrowed case values, wides case values etc and how it differs from the if/else statement. From this, its clear that the Switch/case performance is better for narrowed case values.
Even though the discussion is specific to 68000, the concept remains the same across processors/compilers.
check it out @ http://www.eventhelix.com/RealtimeMantra/Basics/CToAssemblyTranslation3.htm
Function Invocation: Assembly view & Stack Manipulation
Came across the article on how the C function invocation happens and how the stack is manipulated in intel 30386 architectures. Even though the description is specific to win32 __cdecl APIs on Intel architecture, the concept almost remains the same in most architectures.
check it out @ http://www.unixwiz.net/techtips/win32-callconv-asm.html
Win32: Function Calling Conventions __cdecl & __stdcall
I was wondering why VC6 linker prepends an underscore to the function names while displaying errors during linking. I found this article on the win32 function calling conventions and details on why VC6 compiler rewrites the function names in the symbol table.
Check it out @ http://www.unixwiz.net/techtips/win32-callconv.htm
1 comment