stefan

kali

Set the keyboard layout to german in kalisudo setxkbmap de enumerate some portsnmap -p- –min-rate=1000 -T4 trg.com | grep ^[0-9] > p01cat p01 | cut -d ‚/‘ -f 1 | tr ‚\n‘ ‚,‘ | sed s/,$// > p02nmap -sC -sV -p$(cat p02) trg.com – nmap: scan trg.com with at least 1000 packages per second– grep: take lines starting with 0 to 9 and write them to a file named p01– output the file port and cut all lines after /…

0
Read More

unusual-linux-commands

Unusual linux commands can be very handy in several cases. Here are some of them. Repeat the last typed command: !!   Display file-content like cat, but from upside down, can be achieved with tac (reverse cat) tac myfile.txt   Like to lookup in a dictionary file? Use look. Everything whats starts with the passed word will be shown. look car   Display time / date in bash screen on right upper corner. Continously! while sleep 1;do tput sc;tput cup 0 $(($(tput…

0
Read More

utf8-encoded letters in email subject

You might have discovered strange characters in your email-subject like: Ã¼, Ã¤ or Ã¶, and so on? That’s because you have sent them as UTF-8 and they are being interpreted as ISO-8859. Maybee the charters in the email’s body part are correct because you have already set a proper encoding! Well, the body and the subject needs a separate encoding. You can solve the problem by passing the subject string like below: ‚=?utf-8?B?‘.base64_encode(‚Subject with special chars like: äöü‘).‘?=‘  

0
Read More

using ffmpeg for video converting

ffmpeg is a mighty tool for dealing with videos. Around the ffmpeg core is a rich ecosystem with video-editing related tools. First, we look at some handy examples to get a feeling how to deal with ffmpeg. Converting different file formats Getting basic information about a video is as easy as: ffmpeg -i input.avi Converting an mp4-video to an avi-video with ffmpeg: ffmpeg -i input.mp4 output.avi The quality of the output can be defined as well with a number between 1 (high quality)…

0
Read More

Linux Tutorial Part2

Read Linux Tutorial Part1, before you start here. Commands you have head about in Part1 are: whoami, hostname, uname, uptime, clear, pwd, cd, echo, ~ and others. In the second part of the Linux Tutorial, we will learn about dealing with files and folders (directory). First move to your home directory with (change directory): cd Now let us create a directory, named „garage“, with the „make directory“ command: mkdir garage You have created the garage directory, but you are still inside…

0
Read More

Linux Tutorial Part1

These tutorials explain the Linux operating system (os) step by step. Starting with simple examples and getting more advanced each lesson. The line where we type in the commands is called the prompt, the blinking something right to it is the cursor. Lets show who is logged in: whoami And the hostname of the computer can be shown with: hostname As you can see, username and hostname are contained in the prompt. If you want to know the name of…

0
Read More

mysql-fuzzy-logic

If you want to search words that are not spelled correctly you can use mysql’s buildin SOUNDEX function: SELECT * FROM po_images WHERE SOUNDEX(`keyword`) LIKE CONCAT( ‚%‘,SUBSTRING(SOUNDEX(‚wronk spellet wort‘),2),’%‘ );    

0
Read More

centralization versus decentralization

Both of them, centralized and decentralized systems, have their unique strengths, advantages, and peculiarities. In this examination, I’ll dive into both concepts. It was an IT related issue that encouraged me to get in touch with this issue, but the concepts and thoughts can be applied to almost every area. None of both is a better nor superior concept. It depends on the specific situation if centralization or decentralization is a better match. In reality, you will often find a combination…

0
Read More

Monitoring network traffic

tcpdump You want to track all incomming http-Headers on your Webserver? sudo tcpdump -A -s 10240 ‚tcp port 80′ | egrep –line-buffered „^……..(GET |HTTP\/|POST |HEAD )|^[A-Za-z0-9-]+: “ | sed -r ’s/^……..(GET |HTTP\/|POST |HEAD )/\n\1/g‘ Show the HTTP Requests only: sudo tcpdump -A -s 10240 ‚tcp port 80′ | egrep „^……..(GET |HTTP\/|POST |HEAD )|^[:alnum:]+: “ | sed -r ’s/^……..(GET |HTTP\/|POST |HEAD )/\n\1/g‘ capture for a specific URL string (only inside the url’s path) sudo tcpdump -s0 -A -vv | grep „myPathString“…

0
Read More