Follow us on Twitter!
Few are those who can see with their own eyes and hear with their own hearts. - Albert Einstein
Sunday, April 20, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 35
Guests Online: 30
Members Online: 5

Registered Members: 82848
Newest Member: aIjundi
Latest Articles
View Thread

HellBound Hackers | Computer General | Webmasters Lounge

Author

PHP edit files Script


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 09-07-07 17:02
Hey, i made a script that i use often to edit files, so i dont have to use FTP everytime i want to edit a script, here's the code:


Code
<form action=<?php echo("'$_SERVER[PHP_SELF]?file=$_GET[file]'"); ?> method='post'>

<textarea name="content" width="100%" height="100%" style="width:100%;height:750px;background-color:black;color:LightSlateGrey;font-size:12px;" wrap="logical" rows="21" cols="40">
<?php

$file = $_GET['file'];
if(isset($_GET['file'])){

$x = @file_get_contents($file);
if( !$x ){
echo ('No file selected or no data!');
} else {
echo htmlentities(file_get_contents($file));
}


if(isset($_POST['content'])){

$content = $_POST['content'];
$filew = fopen($file, "w+");

fwrite($filew,stripslashes($content));
fclose($filew);
}}

?>
</textarea>

<br><br>
<center>
<input type="submit" value="Edit!" style="height:20px;">  <input type="reset" value="Reset" style="height:20px;">
</form>
</center>




you can test it here:
http://lolzor.t35. . .stfile.txt

just a free host i set up, ads and shit..

ok, post your suggestions/improvements or what you think, i'm PHP noob..




HackingForce~










Edited by on 09-07-07 17:02
Author

RE: PHP edit files Script

SySTeM
Member

Your avatar

Posts: 1524
Location: England, UK
Joined: 27.07.05
Rank:
HBH Guru
Posted on 09-07-07 17:24
Code bank it?


img138.imageshack.us/img138/6527/sig2ak1.jpg
www.hellboundhackers.org/sig/r/2783.png

http://www.elites0ft.com/
Author

RE: PHP edit files Script


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 09-07-07 17:26
Ok, submitted..Wink


Author

RE: PHP edit files Script

Ingelo
Member



Posts: 58
Location: Denmark
Joined: 09.05.06
Rank:
Newbie
Warn Level: 5
Posted on 09-07-07 19:31
Yay, someone was 1337 enough to own it Pfft


felipnorwoodthe007.googlepages.com/ingelo.png
Thansk for the sig chaunchothenacho Smile
img262.imageshack.us/img262/327/amdgy3.gif
img105.imageshack.us/img105/3802/gmailxg6.png
Ingelo@ofir.dk NoNe http://www.outofreality.dk/Test/rot47.php
Author

RE: PHP edit files Script


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 09-07-07 19:35
It probably would have been a good idea to have a check that the file wasn't itself!


Author

RE: PHP edit files Script


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 09-07-07 21:22
mozzer wrote:
It probably would have been a good idea to have a check that the file wasn't itself!


Oh, man, that sucks... lol



Author

RE: PHP edit files Script

SySTeM
Member

Your avatar

Posts: 1524
Location: England, UK
Joined: 27.07.05
Rank:
HBH Guru
Posted on 09-07-07 22:12
Liek wowz! Some 1337 haxx0r managed to edit a file using the "edit.php" page which the source was shown in the forums!!! H0MG HAX!

For those of you who are retarded, what I used above, was sarcasm Smile


img138.imageshack.us/img138/6527/sig2ak1.jpg
www.hellboundhackers.org/sig/r/2783.png

http://www.elites0ft.com/
Author

RE: PHP edit files Script

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 09-07-07 22:23
Drop the black background. And a "new file" option too. Basics are all there though. Now you need to focus on accessibility, flexability, and clearly security.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: PHP edit files Script


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 09-07-07 23:11
1. you don't need a "New file" option..just start coding and click Edit, the file will automatilly get created

2. what's the point of checking if the file is it self, when you can just make a new one that would fuck it, IF that's what you want to do..

3. the point is to use it so you don't have to upload files via FTP each and everytime you want to edit something, not to be a fucking noob and delete the script!

god damn..




Edited by on 09-07-07 23:11
Author

RE: PHP edit files Script

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 09-07-07 23:26
HackingForce wrote:
1. you don't need a "New file" option..just start coding and click Edit, the file will automatilly get created

2. what's the point of checking if the file is it self, when you can just make a new one that would fuck it, IF that's what you want to do..

3. the point is to use it so you don't have to upload files via FTP each and everytime you want to edit something, not to be a fucking noob and delete the script!

god damn..


Erh, I didn't delete the script. In the case you weren't talking to me: I still didn't delete it.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: PHP edit files Script


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 10-07-07 13:29
No, i didn't say to did it, just want to make sure the noob who did it feels stupid for doing it!

Peace..:right:


Author

RE: PHP edit files Script

Mouzi
Member



Posts: 144
Location: Finland
Joined: 08.08.06
Rank:
Newbie
Posted on 10-07-07 14:57
You could add options to chmod the file.


izuom.net/sig.gif
Steganographs
You would try to hack it anyways.