当在Solaris上运行uname-hack脚本时,我需要从uname命令获取正确的信息。 关于uname-hack的更多细节: https://blogs.oracle.com/jonh/entry/it_s_been_a_long 有任何文件包含此信息或任何可以提供正确信息的命令吗?
答案 0 :(得分:1)
您可以使用内核模块化调试器直接从内核中查看信息:
没有黑客攻击:
# uname -a
SunOS s10u11 5.10 Generic_147148-26 i86pc i386 i86pc
黑客攻击:
# uname -a
SunOS PowerPC 5.5.1 gate:1996-12-01 PPC i386 i86pc
# echo "$<utsname" | mdb -k
{
sysname = [ "SunOS" ]
nodename = [ "s10u11" ]
release = [ "5.10" ]
version = [ "Generic_147148-26" ]
machine = [ "i86pc" ]
}