středa 8. února 2017

Capturing SIP and RTP traffic and saving it to pcap file

tcpdump -i eth0 udp port 5060 or udp portrange 10000-20000 -s 0 -w filename.cap

středa 20. července 2016

DISKPART quick how-to

Run cmd in Windows "As Administrator"

LIST DISK

SELECT DISK 5 (or another number)

CLEAN

Now you can create a new partition table.

úterý 28. června 2016

How to set up Linux system proxy

Type the following command to set proxy server:

export http_proxy=http://server-ip:port/
export http_proxy=http://127.0.0.1:3128/
export http_proxy=http://proxyserver.org:3128/
For https:
export http_proxy=http://server-ip:port/

 Set system proxy permanently to all system users: 

Write the previous lines into /etc/enviroment

vim /etc/enviroment

 

středa 24. června 2015

How to identify a script sending spam through Postfix

How (step by step):
  • Switch to a user with sudo rights
  • Check the mail queue with command mailq
  • The first column of the mail queue list shows unique mail ID's, pick one from an obvious spam email and copy it
  • Check this email's details with command postcat -q using the unique mail ID you copied in place of
  • Identify the line starting with "X-PHP-Originating-Script". This should show which script is generating the spam emails
  • Remove the script, patch the website with latest security fixes and make sure folder and file permissions are secure
  • Empty the mail queue with command postsuper -d ALL
  • Check the mail queue again with command mailq to see if more emails are now generated. If the problem persists, repeat the above steps and see if you find other scripts causing you problems.
Source: http://frontmag.no/artikler/how-identify-script-sending-spam-through-postfix

úterý 17. února 2015

Disable IPv6 in Ubuntu

Good when you don`t know much about stuff and don`t know how to configure IPv6 firewall.

Edit /etc/sysctl.conf

Paste to the end:

net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1

Run sysctl -p

After that if you check,

$ cat /proc/sys/net/ipv6/conf/all/disable_ipv6

You will get result as,

1

If you get result as 1, ipv6 disabled successfully.

Install MySQL Server in Ubuntu Without a Password prompt

debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password password rootpass'

debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password_again password rootpass'

apt-get update

apt-get -y install mysql-server-5.5

úterý 29. července 2014

Windows XP update registry hack

Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\WPA\PosReady] "Installed"=dword:00000001