Search Results

Search: Posts Made By: Corlex31
4,831
Posted By Corlex31
IT WORKS !!! ( cygnwin gone wild, so i restarted...
IT WORKS !!! ( cygnwin gone wild, so i restarted comp, and it works like a charm)

THANK YOU SO MUCH :) :) :) :b:
4,831
Posted By Corlex31
the < sign doesn't work on Cygwin64 Terminal :(...
the < sign doesn't work on Cygwin64 Terminal :( But are you sure that this will work on server ? :)
4,831
Posted By Corlex31
oh ,thanks it works , but < is missing :( can i...
oh ,thanks it works , but < is missing :( can i append < somehow ?

?php
// Silence is golden.
?>
4,831
Posted By Corlex31
find . -name "*.php" -type f -exec sed -i '1...
find . -name "*.php" -type f -exec sed -i '1 s/^.*GLOBALS.*$/<?php/g' {} \;

Tried this,nothing happened :confused:
4,831
Posted By Corlex31
find . -name "*.php" -type f -exec sed '1...
find . -name "*.php" -type f -exec sed '1 s/^.*GLOBALS.*$/<?php/g' {} \;
I tried this, but it only shows me(in the cygwin) the contents of .php files
4,831
Posted By Corlex31
I'm sorry for my lack of knowledge of unix, but...
I'm sorry for my lack of knowledge of unix, but can you explain me more about the code, must i use it with find ? and will it work on Cygwin64 Terminal or I must download something else ? :)
4,831
Posted By Corlex31
Appended on the start of file (see the example in...
Appended on the start of file (see the example in first post,code marked red)
actually its one line <?php .....some garbage... ?> and then the original code starts <?php..
so i need to delete the...
4,831
Posted By Corlex31
If you give me a sed command i'll try and see...
If you give me a sed command i'll try and see with cygwin64. The code which was appended was same in every .php i checked. About backups and stuff, it would take me too much effort to reinstall all...
4,831
Posted By Corlex31
Some of it yes. I'd really appreciate if anyone...
Some of it yes. I'd really appreciate if anyone could send me the right command i'm not very close with unix :(
4,831
Posted By Corlex31
I appreciate your answer, but I don't have any...
I appreciate your answer, but I don't have any backups, also reinstall is not an option :(
4,831
Posted By Corlex31
Deleting from .php files
Hello,

I have infected .php files on my server with some code (example at the bottom,code marked red must be deleted, all .php files were infected with this same code). I was wondering how can i...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 09:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy