<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Koen Van Impe - vanimpe.eu</title>
	<atom:link href="http://www.vanimpe.eu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vanimpe.eu</link>
	<description>Rants on Linux, Drupal, Security, ...</description>
	<lastBuildDate>Tue, 11 Jun 2013 15:40:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>NetTraveler, cyber-espionage campaign</title>
		<link>http://www.vanimpe.eu/2013/06/11/nettraveler-cyber-espionage-campaign/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nettraveler-cyber-espionage-campaign</link>
		<comments>http://www.vanimpe.eu/2013/06/11/nettraveler-cyber-espionage-campaign/#comments</comments>
		<pubDate>Tue, 11 Jun 2013 15:37:22 +0000</pubDate>
		<dc:creator>koen</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.vanimpe.eu/?p=1017</guid>
		<description><![CDATA[Kaspersky recently released a paper on a cyber-espionage campaign that used NetTraveler, a malicious program used for covert computer surveillance. The document is an interesting read. Below is a summary of some of the attack vectors used with this malware. You can use this information to detect the presence of the NetTraveler malware. Nettraveler uses [...]]]></description>
				<content:encoded><![CDATA[<p>Kaspersky recently <a href="http://www.securelist.com/en/blog/8105/NetTraveler_is_Running_Red_Star_APT_Attacks_Compromise_High_Profile_Victims">released a paper</a> on a cyber-espionage campaign that used NetTraveler, a malicious program used for covert computer surveillance.
</p>
<p>The <a href="http://www.securelist.com/en/downloads/vlpdfs/kaspersky-the-net-traveler-part1-final.pdf">document</a> is an interesting read. Below is a summary of some of the attack vectors used with this malware. You can use this information to detect the presence of the NetTraveler malware.
</p>
<p>
Nettraveler uses a couple of C&amp;C scripts</p>
<pre class="brush: bash; title: ; notranslate">
aasogspread.asp, adfsdfclnggsldfc.asp, advertisingservicesa3sb.asp, aneywsf. asp, apple.asp, applebag005.asp, azarweforrell.asp, azofjeljgo648rl.asp, certify.asp, dochunter.asp, dochunter1.asp, dochunteradfaefaer.asp, fish.asp, happy. asp, heritage.asp, huyuio67.asp, little.asp, madmaswhbe.asp, nethttpfile.asp, netpass. asp, nettraveler.asp, orphaned.asp, rice.asp, sabcfsf.asp, shenghai.asp, time.asp, update. asp, weathobloe.asp, yegnfvhemc.asp
</pre>
</p>
<p>
Two of the C&amp;C domains are sinkholed, <b>pkspring.net</b> and <b>yangdex.org</b> by Kaspersky. The other domains listed in the report were used by the malware as a command and control.</p>
<pre class="brush: bash; title: ; notranslate">
allen.w223.west263.cn, andriodphone.net, bauer.8866.org, buynewes.com, cultureacess.com, discoverypeace.org, drag2008.com, eaglesey.com, enterairment.net, faceboak.net, gami1.com, globalmailru.com, hint09.9966.org, imapupdate.com, inwpvpn.com, keyboardhk.com, localgroupnet.com, mailyandexru.com, msnnewes.com, newesyahoo.com, newfax.net, lab, ra1nru.com, ramb1er.com, sghrhd.190.20081.info, southstock.net, spit113.minidns.net, tsgoogoo.net, vip222idc.s169.288idc.com, viplenta.com, vipmailru.com, viprainru.com, viprambler.com, vipyandex.com, vpnwork.3322.org, wolf0.3322.org, wolf001.us109.eoidc.net, yahooair.com, lab, zeroicelee.com
</pre>
</p>
<p>
Files marked to be uploaded are put in a directory <b>%Temp%\ ntvba00.tmp\</b>.
</p>
<p>
The saKer’ (‘xbox’) bacKdoor (droPPed file) uses a specific user agent string.</p>
<pre class="brush: bash; title: ; notranslate">
GET /301000000000F0FD...0000000000000000000 000000 HTTP/1.1 
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Win- dows NT 5.0; .NET CLR 1.1.4322)
Host: tsgoogoo.net

Host: pitgay.minidns.net:8090 
Cache-Control: no-cache
&lt;/blockquote&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.vanimpe.eu/2013/06/11/nettraveler-cyber-espionage-campaign/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Manually crafted HTTP requests</title>
		<link>http://www.vanimpe.eu/2013/05/29/manually-crafted-http-requests/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=manually-crafted-http-requests</link>
		<comments>http://www.vanimpe.eu/2013/05/29/manually-crafted-http-requests/#comments</comments>
		<pubDate>Wed, 29 May 2013 16:27:14 +0000</pubDate>
		<dc:creator>koen</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.vanimpe.eu/?p=1005</guid>
		<description><![CDATA[If you want to mangle HTTP requests you are better of with tools like Paros or the Burp Suite. Have a look at the OWASP page for further info. However, if you would like to send them manually with telnet you can use the template below. Warning! This template worked for me, you should adjust [...]]]></description>
				<content:encoded><![CDATA[<p>If you want to mangle HTTP requests you are better of with tools like <a href="http://www.parosproxy.org/">Paros</a> or the <a href="http://portswigger.net/burp/">Burp Suite</a>. Have a look at the <a href="https://www.owasp.org/index.php/Phoenix/Tools">OWASP</a> page for further info. However, if you would like to send them manually with telnet you can use the template below.</p>
<p>Warning! This template worked for me, you should adjust it for your case.</p>
<pre class="brush: bash; title: ; notranslate">
GET /myfile.php HTTP/1.1
Host:myhost.com
User-Agent: Mozilla/5.0 (compatible; MSIE 8.2; Windows NT 6.0; en-US)
Accept: */*
Accept-Language: en-us,en;q=0.5
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Cookie: mycookie=12345
Referer: http://localhost.com/
</pre>
<h3>Update</h3>
<p>I created a small python script, <a href="https://github.com/cudeso/tools/tree/master/http-py">http-py</a>, available on Github do the manually queries.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanimpe.eu/2013/05/29/manually-crafted-http-requests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PwnPi, The Pen Test Drop Box Distro for the Raspberry Pi</title>
		<link>http://www.vanimpe.eu/2013/05/17/pwnpi-the-pen-test-drop-box-distro-for-the-raspberry-pi/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=pwnpi-the-pen-test-drop-box-distro-for-the-raspberry-pi</link>
		<comments>http://www.vanimpe.eu/2013/05/17/pwnpi-the-pen-test-drop-box-distro-for-the-raspberry-pi/#comments</comments>
		<pubDate>Fri, 17 May 2013 06:50:53 +0000</pubDate>
		<dc:creator>koen</dc:creator>
				<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.vanimpe.eu/?p=923</guid>
		<description><![CDATA[I recently discovered a new penetration testing distribution called PwnPi, &#8220;The Pen Test Drop Box Distro for the Raspberry Pi&#8221;. Although the distribution itself is already very interesting, the list of tools provided by the distro is even more interesting. It is the ideal starting point if you want to build your own toolset. 6tunnel [...]]]></description>
				<content:encoded><![CDATA[<p>I recently discovered a new penetration testing distribution called <a href="http://pwnpi.sourceforge.net/">PwnPi</a>, &#8220;The Pen Test Drop Box Distro for the Raspberry Pi&#8221;.</p>
<p>Although the distribution itself is already very interesting, the list of tools provided by the distro is even more interesting. It is the ideal starting point if you want to build your own toolset.</p>
<p>6tunnel &#8211; TCP proxy for non-IPv6 applications<br />
aircrack-ng &#8211; WEP/WPA cracking program<br />
amap &#8211; a powerful application mapper<br />
arp-scan &#8211; arp scanning and fingerprinting tool<br />
bfbtester &#8211; Brute Force Binary Tester<br />
bing-ip2hosts &#8211; Enumerate hostnames for an IP using bing<br />
bsqlbf &#8211; Blind SQL injection brute forcer tool<br />
btscanner &#8211; ncurses-based scanner for Bluetooth devices<br />
chaosreader &#8211; trace network sessions and export it to html format<br />
chkrootkit &#8211; rootkit detector<br />
cryptcat &#8211; A lightweight version netcat extended with twofish encryption<br />
darkstat &#8211; network traffic analyzer<br />
dhcpdump &#8211; Parse DHCP packets from tcpdump<br />
dissy &#8211; graphical frontend for objdump<br />
dmitry &#8211; Deepmagic Information Gathering Tool<br />
dns2tcp &#8211; TCP over DNS tunnel client and server<br />
dnswalk &#8211; Checks dns zone information using nameserver lookups<br />
dsniff &#8211; Various tools to sniff network traffic for cleartext insecurities<br />
enum4linux &#8211; a tool for enumerating information from Windows and Samba systems<br />
etherape &#8211; graphical network monitor<br />
exploit-db &#8211; Exploit Database<br />
fcrackzip &#8211; password cracker for zip archives<br />
fimap &#8211; local and remote file inclusion tool<br />
flasm &#8211; assembler and disassembler for Flash (SWF) bytecode<br />
foremost &#8211; forensic program to recover lost files<br />
fping &#8211; sends ICMP ECHO_REQUEST packets to network hosts<br />
ftp-proxy &#8211; application level proxy for the FTP protocol<br />
galleta &#8211; An Internet Explorer cookie forensic analysis tool<br />
ghettotooth &#8211; a simple but effective blue driving tool<br />
hostmap &#8211; hostnames and virtual hosts discovery tool<br />
hping3 &#8211; Active Network Smashing Tool<br />
httptunnel &#8211; Tunnels a data stream in HTTP requests<br />
httrack &#8211; Copy websites to your computer (Offline browser)<br />
hydra &#8211; Very fast network logon cracker<br />
ike-scan &#8211; discover and fingerprint IKE hosts (IPsec VPN Servers)<br />
inguma &#8211; Open source penetration testing toolkit<br />
iodine &#8211; tool for tunneling IPv4 data through a DNS server<br />
ipcalc &#8211; parameter calculator for IPv4 addresses<br />
isr-evilgrade &#8211; take advantage of poor upgrade implementations by injecting fake updates<br />
ipgrab &#8211; tcpdump-like utility that prints detailed header information<br />
john &#8211; active password cracking tool<br />
kismet &#8211; Wireless 802.11b monitoring tool<br />
knocker &#8211; Simple and easy to use TCP security port scanner<br />
lcrack &#8211; A generic password cracker<br />
lynis &#8211; security auditing tool for Unix based systems<br />
macchanger &#8211; utility for manipulating the MAC address of network interfaces<br />
mboxgrep &#8211; Grep through mailboxes<br />
mdk3 &#8211; bruteforce SSID&#8217;s, bruteforce MAC filters, SSID beacon flood<br />
medusa &#8211; fast, parallel, modular, login brute-forcer for network services<br />
metagoofil &#8211; an information gathering tool designed for extracting metadata<br />
metasploit &#8211; security project which provides information about security vulnerabilities<br />
mysqloit &#8211; SQL Injection takeover tool focused on LAMP<br />
mz &#8211; versatile packet creation and network traffic generation tool<br />
nbtscan &#8211; A program for scanning networks for NetBIOS name information<br />
netcat-traditional &#8211; TCP/IP swiss army knife<br />
netdiscover &#8211; active/passive network address scanner using arp requests<br />
netrw &#8211; netcat like tool with nice features to transport files over network<br />
netsed &#8211; network packet-altering stream editor<br />
netwag &#8211; graphical frontend for netwox<br />
netwox &#8211; networking utilities<br />
nikto &#8211; web server security scanner<br />
nmapsi4 &#8211; graphical interface to nmap, the network scanner<br />
nmap &#8211; The Network Mapper<br />
nstreams &#8211; network streams &#8211; a tcpdump output analyzer<br />
obexftp &#8211; file transfer utility for devices that use the OBEX protocol<br />
onesixtyone &#8211; fast and simple SNMP scanner<br />
openvas-client &#8211; Remote network security auditor, the client<br />
openvas-server &#8211; remote network security auditor &#8211; server<br />
ophcrack-cli &#8211; Microsoft Windows password cracker using rainbow tables (cmdline)<br />
ophcrack &#8211; Microsoft Windows password cracker using rainbow tables (gui)<br />
otp &#8211; Generator for One Time Pads or Passwords<br />
p0f &#8211; Passive OS fingerprinting tool<br />
packeth &#8211; Ethernet packet generator<br />
packit &#8211; Network Injection and Capture<br />
pbnj &#8211; a suite of tools to monitor changes on a network<br />
pentbox &#8211; Suite that packs security and stability testing oriented tools<br />
pdfcrack &#8211; PDF files password cracker<br />
pnscan &#8211; Multi threaded port scanner<br />
proxychains &#8211; proxy chains &#8211; redirect connections through proxy servers<br />
pscan &#8211; Format string security checker for C files<br />
ptunnel &#8211; Tunnel TCP connections over ICMP packets<br />
ratproxy &#8211; passive web application security assessment tool<br />
reaver &#8211; brute force attack tool against Wifi Protected Setup PIN number<br />
s.e.t &#8211; social engineering toolkit<br />
scrub &#8211; writes patterns on magnetic media to thwart data recovery<br />
secure-delete &#8211; tools to wipe files, free disk space, swap and memory<br />
sendemail &#8211; lightweight, command line SMTP email client<br />
siege &#8211; HTTP regression testing and benchmarking utility<br />
sipcrack &#8211; SIP login dumper/cracker<br />
sipvicious &#8211; suite is a set of tools that can be used to audit SIP based VoIP systems<br />
skipfish &#8211; fully automated, active web application security reconnaissance tool<br />
socat &#8211; multipurpose relay for bidirectional data transfer<br />
splint &#8211; tool for statically checking C programs for bugs<br />
sqlbrute &#8211; a tool for brute forcing data out of databases using blind SQL injection<br />
sqlmap &#8211;  tool that automates the process of detecting and exploiting SQL injection flaws<br />
sqlninja &#8211; SQL Server injection and takeover tool<br />
ssldump &#8211; An SSLv3/TLS network protocol analyzer<br />
sslscan &#8211; Fast SSL scanner<br />
sslsniff &#8211; SSL/TLS man-in-the-middle attack tool<br />
sslstrip &#8211; SSL/TLS man-in-the-middle attack tool<br />
stunnel4 &#8211; Universal SSL tunnel for network daemons<br />
swaks &#8211; SMTP command-line test tool<br />
tcpdump &#8211; command-line network traffic analyzer<br />
tcpflow &#8211; TCP flow recorder<br />
tcpick &#8211; TCP stream sniffer and connection tracker<br />
tcpreplay &#8211; Tool to replay saved tcpdump files at arbitrary speeds<br />
tcpslice &#8211; extract pieces of and/or glue together tcpdump files<br />
tcpspy &#8211; Incoming and Outgoing TCP/IP connections logger<br />
tcptrace &#8211; Tool for analyzing tcpdump output<br />
tcpxtract &#8211; extracts files from network traffic based on file signatures<br />
theHarvester &#8211; gather emails, subdomains, hosts, employee names, open ports and banners<br />
tinyproxy &#8211; A lightweight, non-caching, optionally anonymizing HTTP proxy<br />
tor &#8211; anonymizing overlay network for TCP<br />
u3-tool &#8211; tool for controlling the special features of a U3 USB flash disk<br />
udptunnel &#8211; tunnel UDP packets over a TCP connection<br />
ussp-push &#8211; Client for OBEX PUSH<br />
vidalia &#8211; controller GUI for Tor<br />
vinetto &#8211; A forensics tool to examine Thumbs.db files<br />
voiphopper &#8211; VoIP infrastructure security testing tool<br />
voipong &#8211; VoIP sniffer and call detector<br />
w3af-console &#8211; framework to find and exploit web application vulnerabilities (CLI only)<br />
w3af &#8211; framework to find and exploit web application vulnerabilities<br />
wapiti &#8211; Web application vulnerability scanner<br />
wash &#8211; scan for vunerable WPS access points<br />
wavemon &#8211; Wireless Device Monitoring Application<br />
wbox &#8211; HTTP testing tool and configuration-less HTTP server<br />
webhttrack &#8211; Copy websites to your computer, httrack with a Web interface<br />
weplab &#8211; tool designed to break WEP keys<br />
wfuzz &#8211; a tool designed for bruteforcing Web Applications<br />
wipe &#8211; Secure file deletion<br />
wireshark &#8211; network traffic analyzer &#8211; GTK+ version<br />
xprobe &#8211; Remote OS identification<br />
yersinia &#8211; Network vulnerabilities check software<br />
zenmap &#8211; The Network Mapper Front End<br />
zzuf &#8211; transparent application fuzzer</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanimpe.eu/2013/05/17/pwnpi-the-pen-test-drop-box-distro-for-the-raspberry-pi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Linux password file, /etc/passwd</title>
		<link>http://www.vanimpe.eu/2013/04/09/the-linux-password-file-etcpasswd/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-linux-password-file-etcpasswd</link>
		<comments>http://www.vanimpe.eu/2013/04/09/the-linux-password-file-etcpasswd/#comments</comments>
		<pubDate>Tue, 09 Apr 2013 18:10:35 +0000</pubDate>
		<dc:creator>koen</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.vanimpe.eu/?p=894</guid>
		<description><![CDATA[The /etc/passwd file stores crucial information which is required during login on Linux systems. Fields A line in /etc/passwd is one entry for a user account. The fields are separated by a colon (:). The format is as follows (note that for the purpose of formatting the display, the line is split. A real /etc/passwd [...]]]></description>
				<content:encoded><![CDATA[<p>The <strong>/etc/passwd</strong> file stores crucial information which is required during login on Linux systems.</p>
<h2>Fields</h2>
<p>A line in /etc/passwd is one entry for a user account. The fields are separated by a colon (:). </p>
<p>The format is as follows <i>(note that for the purpose of formatting the display, the line is split. A real /etc/passwd file would have all the data on one line)</i>.</p>
<pre class="brush: bash; title: ; notranslate">
newusername:x:1050:1001
     1      2   3    4   
 :NewUser,Roomnr,123,456,user@newdomain.com
        5
 :/home/newusername:/bin/sh
        6               7

 1: username
 2: password 
 3: the user id
 4: the group id
 5: user information (display with 'finger')
 6: the home directory
 7: the shell 
</pre>
<p>If the password field (2) contains an X then the encrypted password is stored in /etc/shadow.<br />
If it contains an * then the account is disabled.</p>
<h2>User IDs</h2>
<p>Every user on a system must have an ID, called an UID (field 3). The super user, or root user, is assigned UID 0. UIDs of 1 to 99 are reserved for predefined accounts. The IDs from 100 to 999 are reserved for system accounts.
</p>
<p>If you spot a user account with UID of 0 and it&#8217;s not root then this might be the sign of a break-in.<br />
An easy way to look for UID 0 accounts is with </p>
<pre class="brush: bash; title: ; notranslate">
egrep ':0+:' /etc/passwd
</pre>
<h2>Shadow file</h2>
<p>Typically the passwd file is readable by world. This would mean that if passwords would also be stored in the passwd file these passwords are accessible by every account. To avoid this, passwords are stored in another file <strong>/etc/shadow</strong> that is only accessible by the root user.</p>
<p>Similarly to the passwd file, this file contains one entry per account and all fields are separated by a colon (:). The format is as follows</p>
<pre class="brush: bash; title: ; notranslate">
newusername:$verylongstrong$:15086:0:99999:7:::
   1              2             3  4   5   6

 1: username
 2: encrypted password 
 3: number of days since last change
 4: minimum of days required between password changes
 5: the maximum of days a password is valid
 6: the number of days, before the expiration of a password, that a user is warned  
</pre>
<p>
If the encrypted password field starts with $ then this means it was generated with something else than DES. For example $1$ indicates it is generated with MD5, $6$ is SHA-512.</p>
<h2>Edit the password or shadow file</h2>
<p>Do not edit the passwd file or shadow file directly with vi.<br />
You should use the special purpose tools as <strong>vipw</strong> or <strong>vigr</strong> to change these files.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanimpe.eu/2013/04/09/the-linux-password-file-etcpasswd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nmap scan through TOR</title>
		<link>http://www.vanimpe.eu/2013/03/24/nmap-scan-through-tor/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nmap-scan-through-tor</link>
		<comments>http://www.vanimpe.eu/2013/03/24/nmap-scan-through-tor/#comments</comments>
		<pubDate>Sun, 24 Mar 2013 22:19:50 +0000</pubDate>
		<dc:creator>koen</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.vanimpe.eu/?p=892</guid>
		<description><![CDATA[TOR (https://www.torproject.org/) is a great project if you want to take care of your privacy. You can use TOR to proxy your nmap scans making it very difficult for the scanned network to find the source. Only scan networks that you are allowed to scan! First check that you have TOR installed. It should be [...]]]></description>
				<content:encoded><![CDATA[<p>TOR (<a href="https://www.torproject.org/">https://www.torproject.org/</a>) is a great project if you want to take care of your privacy. You can use TOR to proxy your nmap scans making it very difficult for the scanned network to find the source.</p>
<h3>Only scan networks that you are allowed to scan!</h3>
<p>First check that you have TOR installed. It should be listening on a local network port tcp/9050.</p>
<pre class="brush: bash; title: ; notranslate">
tcp        0      0 127.0.0.1:9050          0.0.0.0:*               LISTEN      xxxx/tor        
</pre>
<p>You also need to install a package called <b>proxychains</b> that will proxy all the traffic through TOR. Proxychains has its configuration file in <b>/etc/proxychains.conf</b>. When installed, it will add the TOR connection as one of the available proxies./</p>
<p><pre class="brush: bash; title: ; notranslate">
[ProxyList]
# add proxy here ...
# meanwile
# defaults set to &quot;tor&quot;
socks4 	127.0.0.1 9050
</pre>
</p>
<p>Now, in order to proxy your nmap traffic through TOR, use the nmap command prepended with proxychains. Remember that due to the nature of the TOR network, you should limit your scans to TCP only. Use the <b>sS</b> (SYN) or <b>sT</b> (CONNECT) scan types.</p>
<p><del>proxychains nmap -sS -PN -n -p 21,443 </del></p>
<pre class="brush: bash; title: ; notranslate">
proxychains nmap -sT -PN -n -p 21,443
</pre>
<h2>UPDATE</h2>
<p>
A visitor pointed out that nmap breaks out of proxychains.<br />
Further investigation showed that nmap breaks out of proxychains for the SYN (-sS) scan. The CONNECT (-sT) scan is done via proxychains.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanimpe.eu/2013/03/24/nmap-scan-through-tor/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Update ddclient</title>
		<link>http://www.vanimpe.eu/2013/02/25/update-ddclient/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=update-ddclient</link>
		<comments>http://www.vanimpe.eu/2013/02/25/update-ddclient/#comments</comments>
		<pubDate>Mon, 25 Feb 2013 22:34:11 +0000</pubDate>
		<dc:creator>koen</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://www.vanimpe.eu/?p=863</guid>
		<description><![CDATA[An older script that I use on OpenBSD to update ddclient hostnames. The script should run with minor modifications on Linux. If you are unable to get your public IP from a local interface then you can use dyndns.org.]]></description>
				<content:encoded><![CDATA[<p>An older script that I use on OpenBSD to update ddclient hostnames. The script should run with minor modifications on Linux.</p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/sh

PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin

IPFILE=/root/scripts/ipcheck.ip
INTF=tun0
MAILRCPT=&quot;yourmail&quot;
MAILSUBJECT=&quot;DDclient update&quot;

IP=`ifconfig $INTF | grep &quot;inet &quot; | grep -v inet6 | awk '{print $2}' |
sed 's/addr://'`

if [ -f $IPFILE ]; then
 OLDIP=&quot;`cat $IPFILE`&quot;
fi

if [ &quot;$IP&quot; != &quot;$OLDIP&quot; ]; then
 echo $IP &amp;gt; $IPFILE
 /usr/bin/logger -t ipcheck_ddclient new IP address -- changed to $IP
 /sbin/ifconfig -a | mail -s $MAILSUBJECT $MAILRCPT
 /usr/local/sbin/ddclient -daemon=0 -syslog -use=ip -ip=$IP
fi
</pre>
<p>If you are unable to get your public IP from a local interface then you can use dyndns.org.</p>
<pre class="brush: bash; title: ; notranslate">
wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/&amp;lt;.*$//'
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.vanimpe.eu/2013/02/25/update-ddclient/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use Dropbox with encrypted volume for backups</title>
		<link>http://www.vanimpe.eu/2013/02/13/use-dropbox-with-encrypted-volume-for-backups/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=use-dropbox-with-encrypted-volume-for-backups</link>
		<comments>http://www.vanimpe.eu/2013/02/13/use-dropbox-with-encrypted-volume-for-backups/#comments</comments>
		<pubDate>Wed, 13 Feb 2013 22:11:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[internet]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.vanimpe.eu/?p=860</guid>
		<description><![CDATA[I use Dropbox to have online backups of my files. Dropbox already provides a good set of protection mechanisms (Two-step verification, &#8230;). If you need an additional level then Boxcryptor is worth having a look. Unfortunately Boxcryptor is not available on Linux but it is compatible with encfs. The blog of Boxcryptor has a post [...]]]></description>
				<content:encoded><![CDATA[<p>I use <a href="https://www.dropbox.com">Dropbox</a> to have online backups of my files. Dropbox already provides a good set of protection mechanisms (<a href="https://www.dropbox.com/help/363/en">Two-step verification</a>, &#8230;). If you need an additional level then <a href="https://www.boxcryptor.com/">Boxcryptor</a> is worth having a look.</p>
<p>Unfortunately Boxcryptor is not available on Linux but it is compatible with <a href="http://www.arg0.net/encfs">encfs</a>. The blog of Boxcryptor has a <a href="http://blog.boxcryptor.com/how-to-use-boxcryptor-with-encfs-in-ubuntu-ma">post describing in details</a> how you can setup encfs on Ubuntu.
</p>
<p>The blog post lacks some useful additional details.
</p>
<h3>Have encfs available for every user</h3>
<p>By default only root users are allowed to use encfs. You can allow non-root users to use encfs.</p>
<p>Modify the /etc/fuse.conf file so that the last line &#8220;user_allow_other&#8221; does NOT have a leading hash. Save and exit. You do not need to reboot.
</p>
<p>Add the non-priv user to the group fuse</p>
<p>You can then use encfs:</p>
<pre class="brush: bash; title: ; notranslate">
$ encfs /home/joeuser/encrypted_data /home/joeuser/decrypted -- -o allow_other
</pre>
<h3>Sync files automatically</h3>
<p>I sync my files via rsync from crontab. Before running the rsync I verify if the encrypted volume is mounted.</p>
<pre class="brush: bash; title: ; notranslate">
#/bin/bash

if ! mount | grep encfs &gt;/dev/null; then
 echo &quot;ENCFS not mounted&quot;
else
 rsync -artvuc --delete /home/joeuser/files/ /home/joeuser/decrypted/files
fi
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.vanimpe.eu/2013/02/13/use-dropbox-with-encrypted-volume-for-backups/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading Redmine 1.3 to 2.2</title>
		<link>http://www.vanimpe.eu/2013/02/06/upgrading-redmine-1-3-to-2-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=upgrading-redmine-1-3-to-2-2</link>
		<comments>http://www.vanimpe.eu/2013/02/06/upgrading-redmine-1-3-to-2-2/#comments</comments>
		<pubDate>Wed, 06 Feb 2013 00:04:46 +0000</pubDate>
		<dc:creator>koen</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://www.vanimpe.eu/?p=843</guid>
		<description><![CDATA[The documentation of Redmine describes the upgrade process. I upgraded from Redmine 1.3.1 to Redmine 2.2.2. On an older Ubuntu (10.04.4 LTS) the upgrade steps described in the documentation were not sufficient. Extract the latest redmine file in your web root. I use a symlink pointing redmine to the latest version. This allows you to [...]]]></description>
				<content:encoded><![CDATA[<p>The <a href="http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade">documentation</a> of Redmine describes the upgrade process. I upgraded from Redmine 1.3.1 to Redmine 2.2.2. On an older Ubuntu (10.04.4 LTS) the upgrade steps described in the documentation were not sufficient.</p>
<p>Extract the latest redmine file in your web root. I use a symlink pointing redmine to the latest version. This allows you to keep different version and provides an easy way to switch between versions. You then have to copy the different configuration files (database, configuration) from the &#8216;old&#8217; setup to the &#8216;new&#8217; setup. Do <b>not copy</b> the <b>settings.yml</b> file.</p>
<pre class="brush: bash; title: ; notranslate">
cp redmine-1.3.1/config/database.yml redmine/config/
cp -r redmine-1.3.1/files redmine/
</pre>
<p>The first error message is because of <b>bundle</b>.</p>
<pre class="brush: bash; title: ; notranslate">
rake aborted!
no such file to load -- bundler/setup
</pre>
<pre class="brush: bash; title: ; notranslate">
gem install bundler
bundle install
</pre>
<p>The bundle command failed because of <b>libmagick</b> problems. It was not a requirement for older Redmine versions but without the package (and the libraries) I couldn&#8217;t get the upgrade to continue.</p>
<pre class="brush: bash; title: ; notranslate">
checking for Magick-config... no
Can't install RMagick 2.13.2. Can't find Magick-config in /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
</pre>
<pre class="brush: bash; title: ; notranslate">
apt-get install librmagick-ruby
apt-get install libmagick9-dev
</pre>
<p>Restart the bundle install.</p>
<pre class="brush: bash; title: ; notranslate">
bundle install
</pre>
<p>Perform the &#8216;normal&#8217; migration steps.</p>
<pre class="brush: bash; title: ; notranslate">
rake generate_secret_token
rake db:migrate RAILS_ENV=production
rake redmine:plugins:migrate RAILS_ENV=production 
rake tmp:cache:clear
rake tmp:sessions:clear
</pre>
<p>Restart Apache (and Passenger). The next error was Ruby (browser) complaining that there was no dispatch file.</p>
<pre class="brush: bash; title: ; notranslate">
no such file to load -- dispatcher
</pre>
<p>To solve this you have to upgrade Passenger manually.</p>
<pre class="brush: bash; title: ; notranslate">
gem install passenger
passenger-install-apache2-module
</pre>
<p>Change these configuration files</p>
<pre class="brush: bash; title: ; notranslate">
in /etc/apache2/mods-enabled/passenger.load
  LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-3.0.19/ext/apache2/mod_passenger.so

in /etc/apache2/mods-enabled/passenger.conf
  PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-3.0.19
  PassengerRuby /usr/bin/ruby1.8
</pre>
<p>Restart Apache and Passenger. Log in to Redmine and go to the Administration part and review the roles and configuration.</p>
<h3>Have Redmine installed for you</h3>
<p>I can <a href="http://www.cudeso.be/english">help you</a> if you need help installing or maintaining <b>Redmine</b>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanimpe.eu/2013/02/06/upgrading-redmine-1-3-to-2-2/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Red October &#8211; Indicators of compromise</title>
		<link>http://www.vanimpe.eu/2013/01/23/red-october-indicators-of-compromise/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=red-october-indicators-of-compromise</link>
		<comments>http://www.vanimpe.eu/2013/01/23/red-october-indicators-of-compromise/#comments</comments>
		<pubDate>Wed, 23 Jan 2013 13:29:07 +0000</pubDate>
		<dc:creator>koen</dc:creator>
				<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.vanimpe.eu/?p=840</guid>
		<description><![CDATA[&#8220;Red October” is a high-level cyber-espionage campaign that has been active for over 5 years and the discovery was announced on January 14, 2013 by Kaspersky Lab. Below is a list of domains and IPs used in the attack. These lists can help system administrators spot infections on their network. The information is taken from [...]]]></description>
				<content:encoded><![CDATA[<p>&#8220;Red October” is a high-level cyber-espionage campaign that has been active for over 5 years and the discovery was announced on January 14, 2013 by Kaspersky Lab.</p>
<p>Below is a list of domains and IPs used in the attack. These lists can help system administrators spot infections on their network. The information is taken from the PDF at <a href="http://www.securelist.com/en/blog/208194092/Red_October_Indicators_of_compromise">http://www.securelist.com/en/blog/208194092/Red_October_Indicators_of_compromise</a>.</p>
<h3>IPs</h3>
<pre class="brush: bash; title: ; notranslate">
141.101.239.225
178.162.129.237
178.162.182.42
178.63.208.49
188.40.19.247
31.184.234.18
31.41.45.9
37.235.54.48
46.4.202.86
77.72.133.161
78.46.173.15
88.198.30.44
88.198.85.161
88.198.85.162
92.53.105.40
95.168.172.69
31.41.45.139
91.226.31.40
178.63.208.63
31.41.45.119
176.9.241.254
31.41.45.179
176.9.189.36
92.53.105.214
188.40.19.244
85.25.104.57
</pre>
<h3>Command and Control domains</h3>
<pre class="brush: bash; title: ; notranslate">
bb-apps-world.com
blackberry-apps-world.com
blackberry-update.com
csrss-check-new.com
csrss-update-new.com
csrss-upgrade-new.com
dailyinfonews.net
dll-host.com
dll-host-check.com
dll-host-udate.com
dll-host-update.com
dllupdate.info
drivers-check.com 
drivers-get.com
drivers-update-online.com
genuine-check.com
genuineservicecheck.com
genuineupdate.com
hotinfonews.com
microsoftcheck.com
microsoft-msdn.com
microsoftosupdate.com
mobile-update.com
msgenuine.net
msinfoonline.org
msonlinecheck.com
msonlineget.com
msonlineupdate.com
ms-software-check.com
ms-software-genuine.com
ms-software-update.com
new-driver-upgrade.com
nt-windows-check.com
nt-windows-online.com
nt-windows-update.com
osgenuine.com
os-microsoft-check.com
os-microsoft-update.com
security-mobile.com
shellupdate.com
svchost-check.com
svchost-online.com
svchost-update.com
update-genuine.com
win-check-update.com
windowscheckupdate.com
windows-genuine.com
windowsonlineupdate.com
win-driver-upgrade.com
wingenuine.com
wins-driver-check.com
wins-driver-update.com
wins-update.com
winupdateonline.com
winupdateos.com
world-mobile-congress.com
xponlineupdate.com
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.vanimpe.eu/2013/01/23/red-october-indicators-of-compromise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tourists maps for a visit to Brugge</title>
		<link>http://www.vanimpe.eu/2012/11/17/tourists-maps-for-a-visit-to-brugge/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tourists-maps-for-a-visit-to-brugge</link>
		<comments>http://www.vanimpe.eu/2012/11/17/tourists-maps-for-a-visit-to-brugge/#comments</comments>
		<pubDate>Sat, 17 Nov 2012 22:19:56 +0000</pubDate>
		<dc:creator>koen</dc:creator>
				<category><![CDATA[brugge]]></category>

		<guid isPermaLink="false">http://www.vanimpe.eu/?p=803</guid>
		<description><![CDATA[I live in Brugge and I&#8217;m a member of Couchsurfing, I&#8217;m always interested in every initiative that provides tourists with interesting city information. Recently I found a map from Use-It with some interesting &#8220;things to do&#8221;. I&#8217;ve put the map in my Evernote notes.]]></description>
				<content:encoded><![CDATA[<p>I live in Brugge and I&#8217;m a member of Couchsurfing, I&#8217;m always interested in every initiative that provides tourists with interesting city information.</p>
<p>Recently I found a map from Use-It with some interesting &#8220;things to do&#8221;. I&#8217;ve put the map in my <a href="https://www.evernote.com/pub/cudeso/tipsntricks_vanimpe#b=d7def6af-d216-4c83-b1cf-478d4d12f78d&amp;n=24c6491f-19b4-4ed1-9e9b-005325e62abe">Evernote notes</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vanimpe.eu/2012/11/17/tourists-maps-for-a-visit-to-brugge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
