Warning: opendir(/var/www/html/web1/serendipity/plugins/serendipity_event_dpsyntaxhighlighter/sh/3.0.83.2/scripts/): failed to open dir: No such file or directory in /var/www/html/web1/serendipity/plugins/serendipity_event_dpsyntaxhighlighter/serendipity_event_dpsyntaxhighlighter.php on line 26

Warning: Invalid argument supplied for foreach() in /var/www/html/web1/serendipity/plugins/serendipity_event_dpsyntaxhighlighter/serendipity_event_dpsyntaxhighlighter.php on line 170
Skip to content

Overthewire Vortex Level0

Mit http://www.overthewire.org/ scheint es (eine weitere) interessante Seite, mit sogenannten Wargames zu geben.
 
"The wargames offered by the OverTheWire community can help you to learn and practice security concepts in the form of funfilled games" (http://www.overthewire.org)
 
Na dann mal los......;D
 
Hier meine Lösung für Level0
Continue reading "Overthewire Vortex Level0"

Reverse Engineering - Linux Crackme

Linux Crackme
 
Ich hab vor einiger Zeit ein Crackme (mein erstes) für die Seite www.wechall.net geschrieben, vielleicht hat jemand Lust sich mal daran zu versuchen ;D
 
MD5: 46648616db30742a0b692de77431fd4d
SHA1: 5c8fcc5ceecc7f3185bbf73655d2e2e60ccb7b7e
RIPEMD160: c5b252ee94fe71f6b2925c32dc2b46e21d105652
 
 
Continue reading "Reverse Engineering - Linux Crackme"

Shellscript - Nagios Plugins - UCARP



 
UCARP-Master
 
#!/bin/sh

virtuelle_ip=192.168.0.1
interface=eth1:1

/sbin/ifconfig $interface | grep $virtuelle_ip &> /dev/null

        if [ $? = 1 ]; then
                echo "CRITICAL – Virtual IP $ip on master"
                exit 1
        else
                /sbin/ifconfig $interface | grep $virtuelle_ip | cut -f 2 -d ":" | while read output;
        do
                ip=$(echo $output | awk ‘{print $1}’ )
                echo "OK – Virtual IP on master"
                exit 0
        done
fi
 
UCARP-Slave
 
#!/bin/sh

virtuelle_ip=192.168.0.1
interface=eth1:1

/sbin/ifconfig $interface | grep $virtuelle_ip &> /dev/null

        if [ $? = 1 ]; then
                echo "OK – No Virtual IP on slave"
                exit 0
        else
                /sbin/ifconfig $interface | grep $virtuelle_ip | cut -f 2 -d ":" | while read output;
        do
                ip=$(echo $output | awk ‘{print $1}’ )
                echo "CRITICAL – Virtual IP $ip on slave"
                exit 1
        done
fi


Shellscript - Nagios Plugins - Swap & Memory


 
Plugin zum Überwachen des Arbeitsspeichers
 
#!/bin/sh

free -m | grep Mem | while read output;
do
  mem=$(echo $output | awk ‘{print $2}’ )
  used=$(echo $output | awk ‘{ print $3 }’ )
  free=$(echo $output | awk ‘{ print $4 }’ )
  use=`expr $used \* 100 / $mem`

  if [ $use -ge 90 ]; then
    echo "CRITICAL Total Mem: \"$mem\" Used: \"$used ($use%)\" Free: \"$free\" "
    exit 2
  elif [ $usep -ge 50 ]; then
    echo "WARNING Total Mem: \"$mem\" Used: \"$used ($use%)\" Free: \"$free\" "
    exit 1
  else
    echo "OK Mem: $mem" "Used: $used" "Free: $free"
    exit 0
  fi

done
 
Plugin zum Überwachen des Swap
 
#!/bin/sh
free -m | grep Swap | while read output;
do
  swap=$(echo $output | awk ‘{print $2}’ )
  used=$(echo $output | awk ‘{ print $3 }’ )
  free=$(echo $output | awk ‘{ print $4 }’ )
  use=`expr $used \* 100 / $swap`

  if [ $use -ge 90 ]; then
    echo "CRITICAL Swap: \"$swap\" Used: \"$used ($use%)\" Free: \"$free\" "
    exit 2
  elif [ $use -ge 50 ]; then
    echo "WARNING Swap: \"$swap\" Used: \"$used ($use%)\" Free: \"$free\" "
    exit 1
  else
    echo "OK Swap: $swap" "Used: $used" "Free: $free"
    exit 0
  fi

done
 

Download: memory.sh swap.sh
Imprint | Contact | Privacy Statement

Warning: opendir(/var/www/html/web1/serendipity/plugins/serendipity_event_dpsyntaxhighlighter/sh/3.0.83.2/scripts/): failed to open dir: No such file or directory in /var/www/html/web1/serendipity/plugins/serendipity_event_dpsyntaxhighlighter/serendipity_event_dpsyntaxhighlighter.php on line 26

Warning: Invalid argument supplied for foreach() in /var/www/html/web1/serendipity/plugins/serendipity_event_dpsyntaxhighlighter/serendipity_event_dpsyntaxhighlighter.php on line 170