Tech
Scanning iPhone (iOS 4) with nmap
by kanenas.net on Jul.13, 2010, under News, Programming, Tech
I was just wondering what kind of ports can you find open (closed, filtered) while scanning the iPhone with nmap.
>nmap -p 1-65535 -O -v 192.168.1.72
and the results…
Starting Nmap 5.21 ( http://nmap.org ) at 2010-07-13 22:53 GTB Daylight Time Initiating ARP Ping Scan at 22:53 Scanning 192.168.1.72 [1 port] Completed ARP Ping Scan at 22:53, 0.49s elapsed (1 total hosts) Initiating Parallel DNS resolution of 1 host. at 22:53 Completed Parallel DNS resolution of 1 host. at 22:53, 0.00s elapsed Initiating SYN Stealth Scan at 22:53 Scanning iPhone.lan (192.168.1.72) [65535 ports] Increasing send delay for 192.168.1.72 from 0 to 5 due to max_successful_tryno increase to 4 SYN Stealth Scan Timing: About 6.15% done; ETC: 23:02 SYN Stealth Scan Timing: About 12.01% done; ETC: 23:02 SYN Stealth Scan Timing: About 17.88% done; ETC: 23:02 SYN Stealth Scan Timing: About 23.78% done; ETC: 23:02 SYN Stealth Scan Timing: About 29.61% done; ETC: 23:02 SYN Stealth Scan Timing: About 35.48% done; ETC: 23:02 SYN Stealth Scan Timing: About 41.27% done; ETC: 23:02 Discovered open port 62078/tcp on 192.168.1.72 SYN Stealth Scan Timing: About 47.06% done; ETC: 23:02 SYN Stealth Scan Timing: About 52.80% done; ETC: 23:02 SYN Stealth Scan Timing: About 58.76% done; ETC: 23:02 SYN Stealth Scan Timing: About 64.57% done; ETC: 23:02 SYN Stealth Scan Timing: About 70.38% done; ETC: 23:02 SYN Stealth Scan Timing: About 76.13% done; ETC: 23:02 SYN Stealth Scan Timing: About 81.92% done; ETC: 23:02 SYN Stealth Scan Timing: About 87.75% done; ETC: 23:02 SYN Stealth Scan Timing: About 93.70% done; ETC: 23:02 Increasing send delay for 192.168.1.72 from 5 to 10 due to max_successful_tryno increase to 5 Completed SYN Stealth Scan at 23:02, 530.95s elapsed (65535 total ports) Initiating OS detection (try #1) against iPhone.lan (192.168.1.72) Nmap scan report for iPhone.lan (192.168.1.72) Host is up (0.058s latency). Not shown: 65534 closed ports PORT STATE SERVICE 62078/tcp open iphone-sync MAC Address: **:**:**:**:**:** (Apple) Device type: general purpose Running: Apple Mac OS X 10.5.X OS details: Apple Mac OS X 10.5 - 10.6 (Leopard - Snow Leopard) (Darwin 9.0.0b5 - 10.0.0) Network Distance: 1 hop TCP Sequence Prediction: Difficulty=259 (Good luck!) IP ID Sequence Generation: Randomized OS detection performed. Please report any incorrect results at http://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 534.46 seconds Raw packets sent: 69952 (3.079MB) | Rcvd: 65587 (2.624MB)
PORT STATE SERVICE
62078/tcp open iphone-syncNot shown: 65534 closed ports
Shouldn’t be filtered instead?!
FizzBuzz questions & coding for fun!
by kanenas.net on Jul.02, 2010, under PHP, Programming, Tech
Two days ago I was reading in RethinkDB’s blog the “Will the real programmers please stand up?” which took me to the blogpost of Coding Horror “Why Can’t Programmers.. Program?”.
After reading these two articles I had the idea to start a FizzBuzz coding section just for fun (CfF - Coding for Fun).
So today’s FizzBuzz question is…
Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”.
Below is my solution written in php.
<?php
echo '<h2>Coding For Fun</h2>';
$three = 3;
$five = 5;
$fifteen =15;
for ($i=1; $i<=100; $i++){
if (($i%$three === 0) && ($i%$five === 0)) {
echo 'FizzBuzz<br />';
} elseif ($i%$three === 0) {
echo 'Fizz<br />';
} elseif ($i%$five === 0) {
echo 'Buzz<br />';
} else {
echo $i . '<br />';
}
}
echo '<br />==============<br /><br />';
for ($i=1; $i<=100; $i++){
if ($i%$fifteen === 0) {
echo 'FizzBuzz<br />';
} elseif ($i%$three === 0) {
echo 'Fizz<br />';
} elseif ($i%$five === 0) {
echo 'Buzz<br />';
} else {
echo $i . '<br />';
}
}
?>
Yes… it took me 10 minutes ![]()
Can i stand up?!

