Add the following config, e.g. to /etc/httpd/conf/httpd.conf: LogLevel info authz_core:debug then make sure to reload apache (service httpd reload) and you will find a detailed reason, why access to a resource is granted or not in the error log.
Category: Linux
Export running virtual machine to ova file
ec2-create-instance-export-task {instance id} -e vmware -f vmdk -c ova -b {bucket name} Source: Exporting Amazon EC2 Instances – Amazon Elastic Compute Cloud
Start virtual machine from ova file stored in AWS S3 as new EC2 instance
aws ec2 import-image –cli-input-json “{ \”Description\”: \”Instance Name\”, \”DiskContainers\”: [ { \”Description\”: \”First CLI task\”, \”UserBucket\”: { \”S3Bucket\”: \”S2-BUCKET-NAME\”, \”S3Key\” : \”FILENAME.ova\”}}]}”
Capture network packets using tcpdump via command line for later inspection with Wireshark
sudo tcpdump -i any -s 65535 -w somefilename.pcapng
Unpack part’ed tarballs
Need to unpack a bunch of files such as: bigfile.tar-part0000 bigfile.tar-part0001 bigfile.tar-part0002 with the following command: cat bigfile.tar-part000* | tar xzf – which untars the part file’s contents to the current folder.
Recover sudo abilities in debian
In case you screw up your sudo functionality, e.g. by removing yourself (the entity using sudo) from the sudoers using sudo, you can fix that easily using this step-by-step guide.
Hardening Linux / Apache
Just a list of tutorials: http://www.openlogic.com/wazi/bid/188105/How-to-Secure-Your-Apache-Web-Server http://blog.monitis.com/index.php/2011/06/22/25-linux-server-hardening-tips/ http://www.cyberciti.biz/tips/linux-security.html
Reverse engineer an iOS App with Wireshark
I read a lot of news from the 20 min online website using the 20 min online .ch app for iOS. Every now and then, people start commenting the articles (and leave behind a lot of silly comments). My goal was to get the URL where this data (the comments) is loaded from (for some… Continue reading Reverse engineer an iOS App with Wireshark
My first open source project
I recently released my old, long-term project called survey-rocket (a simple online survey tool) to google code. I started to refactor the code to make it more readable and maintainable. Although I invested many hours, there is still a long way to go until it can be considered good code. Basically I used this project… Continue reading My first open source project
Simple OpenCV video input/output sample
This short piece of code below captures a frame from a web cam and shows it in a window. Some simple transformations can be applied. #include #include int main(void) { //we assume, that there is only one camera CvCapture* capture= cvCaptureFromCAM(-1); IplImage* img; int loop; while(loop++width; int height = img->height; int nchannels = img->nChannels; int… Continue reading Simple OpenCV video input/output sample