Original post address: http://sheng.iteye.com/blog/758973shellcode
- Bash-3.2 # uname-
- Darwin MeMac-cns-Mac-Pro.local 9.4.0 Darwin kernel version 9.4.0: Fri Aug 1 21:34:49 est 2008; Toh & stagexnu: xnu-1228.5.20/build/obj/release_i386 i386
.
Then I searched the internet and tried it one by one. I finally found a stupid solution:
More/system/library/coreservices/systemversion. plist
XML Code
- <? XML version = "1.0" encoding = "UTF-8"?>
- <! Doctype plist public "-// Apple // DTD plist 1.0 // en" "http://www.apple.com/DTDs/
- PropertyList-1.0.dtd>
- <Plist version = "1.0">
- <Dict>
- <Key> productbuildversion </key>
- <String> 9f33 </string>
- <Key> productcopyright </key>
- <String> 1983-2008 Apple Inc. </string>
- <Key> productname </key>
- <String> Mac OS X </string>
- <Key> productuservisibleversion </key>
- <String> 10.5.5 </string>
- <Key> productversion </key>
- <String> 10.5.5 </string>
- </Dict>
- </Plist>
10.5.5 indicates the version number of Mac OS X. Http://sheng.iteye.com/blog/758973