|
|
Search/replace Perl or Bash scriptRequired skills: C/C++, Java, Linux, Perl, Python
Hi All,
Here is the logic that I need: I'm not a perl or bash script expert, so my syntax is not correct. We have a server that has been hacked and was injected with lines like: <iframe frameborderMODIFIED="0" onlMODIFIEDoad="if (!thisMODIFIED.src){ this.src='http://theeasyMODIFIEDriver.ru:8080/index.php'; this.height='0'; this.width='0';}" >mpjekrjkyxsjdivcdgobvmcrmdsqfoy</iframe> (I injected the word MODIFIED so that no harm will be caused to anyone surfing here). Running: grep -lr ":8080" * > listofbadfiles.txt Captures the list of all the infected files. To MANUALLY clean each file I use the following sanitize.pl file: for example: ./sanitize.pl index.php server #less sanitize.pl #!/usr/bin/perl -i undef $ /; $ _ = <>; s/<iframe frameborder.*?iframe>//msg ; print "$ _"; Now, this is doing the work for a Single file. However, I have hundreds of files that need to be sanitized, so I want to run the sanitize.pl on every file that is in the listofbadfiles.txt I tried to run the following logic, but I'm not a good bash/perl developer, so this is where I need your assistance in creating the right loop that will run correctly: #!/usr/bin/perl -i grep -lr ":8080" * > listofbadfiles.txt open (FILE, "<listofbadfiles.txt>") or die "Can't open file!"; while (<FILE>) { undef $ /; $ _ = <>; s/<iframe frameborder.*?iframe>//msg ; print "$ _"; } This is a short script/project, probably a 5 minutes script. When you bid,. please make sure you know Perl and Bash scripting. I want to be able to run: ./loop-sanitize.pl and have the script grep recursivly all the files in the directory and below, and then process them accordingly. Very simple,. very short. Good luck and Happy bidding.
Related projects:Small Perl or Bash project to make numbers human readable Featured Projects, i
nvalid EOF) http://www.i-justblog.com/2009/05/iostat-disk-throughput-script.html (not giving any output and would need to match vm name to dm-* name) The purpose of this is to monitor disk I/O and read/writes of users virtual machines (XEN based) Happy to answer any questions. PERL or PHP script to send SMS
would like you to add a subroutine to this script, so that after it's done with it's existing work, it sends me an SMS message to my cell phone here in Thailand. It should be simple, and you should already know which SMS services work well with such a PERL script. Some SMS gateways do not work. I don't mind subscribing to one that does in fact work with PERL. If you think you can do this in PHP, ok, but I like PERL for this kind of task. URGENT: Perl or Python script for creating website screenshot
allable via commandline or by another PHP script. I DO NOT want: - a script that uses Xfvb (or similar X servers) together with Firefox and ImageMagick - a script that uses third-part copyrighted work This is work for hire and you agree to transfer all rights for the script to me. Serious bids only - cut and paste bids will be ignored. Must show examples of work created. If you have any questions, please use PM. Thanks, Sam.. Htmlparser Sed Or Bash Script
Hello,
Im looking for someone who could remove a certain peace of data from certain files using a html parser, sed or bash shell script method. This project will be handled using the Private Message. You will need to send me a PM, i will give you the code i need to get deleted from certain files and you will provide me the script solution. Faster Programmer will defintely win this. Script For Honeypot Honeyd
system, what is needed (what files from where) to start it
Sample Sessions: user manual with example session(s) of the system (print major screens) Troubleshooting: in a table, list the common problems/errors/bugs and how the user can recover References: bibliography of documents used including op sys, language, and project area manuals/books Source Code: include all code you wrote, print out any interfaces from the tool you used Fix - Google Chrome Did Not Shut Down Properly Message
Hello,
- I need to fix this error message "Google Chrome did not shut down properly" which shows after a few minutes when google chrome has started. - I have tried to remove cache "/.cache/google-chrome/Cache/*" then start chrome but this message keeps showing? - I need a script to fix this that can run on Linux (php, perl or bash script). Many thanks for help, Best regards, Johan Quick loop script (bash,perl,python) Featured Projects, identified by a label
.. Because sometimes my script "cmd.php" gets stuck at "Logging in... OK ..." and if it stuck then it needs execute it again. Basically something like if cmd.php dont give any new response for 5 minutes, it will kill current one and start new one. Thank You. Process Script For Linux (php Or Perl)
Hello,
- I need a good programmer to make a script that process newly uploaded media files. - I prefer if the script is made with either Perl or PHP. - Attaching a word document that describes what the script should do. Thanks, Best regards, Johan Socket Programming Perl Or C
// stream_set_blocking($ socket, TRUE );
// stream_set_timeout($ socket, 0, 1); // // WHEN TIMEOUT HAPPENDS, FUNCTION getData() should EXIT and RETURN "TIMEOUT" $ lenBE = fgets($ socket,5); $ len = unpack("N",$ lenBE); $ len = $ len[1]; $ msg = fread($ socket,$ len); return $ msg; } $ socket = connect(); sendData($ msg_login); $ data = getData(); ?> Bash Script posting classified ads online
ell script which is able to post classified ads on webpages like OLX.com or wantedwants.com. The script needs to be able to accept different ad context, and fields required by the webpages like Location, Title, Description, email address etc. After the posting the ad link needs to be available for further processing in a bash script. Ideally no add-on tools should be used but pure shell scripting, PHP is available. Thanks unix script to move/delete files that are N days old
r1 parameter2 parameter3 parameter4 cron entry 00 6 * * * Archive.sh move /path/to/directoryA /path/to/directoryB 20 cron entry 00 6 * * * Archive.sh delete /path/to/directory 60 perl or pyhton expert
ble price. I can choose new freelancer if you have great skills and i want expert porgrammers too if your service price is reliable around 30$ . Let me know about your skills then we will decide. I want simple programms every month, we have many projects related to it. Thanks Virtualmin / Bash Script
late Should chmod 777 the home dir created Must copy a set of our default files and folders (index.php etc) into their new home directory I can then call this bash file from php We use Virtualmin to create our Virtualhosts here so any integration between this script and them is of value. Thanks. Jay CompuMatter Simple bash script
mp;end timestamp;bool exit code command A;bool exit command B The bool exit code is either true or false or NULL (if the second command has not been run). Script shall be started this way: ./<scriptname> -f config-file -l <log_dir> -o <output-csv-file> Looking forward to your bids. Best regards, Sebastian Bash script sending DHCP messages via netcat
o construct such a message. The client identifier shall be left empty in this scenario. After messages for all IPs are send the script shall sleep 30 seconds and start again. Please state in your bid or personal message what experience you have with bash scripting and dhcp. Looking forward to your bid. Best regards, Sebastian data extract from websites perl or php or javascript needed
tr>
work is simple i will give website and required data to collect you create script and i will run it and if any issues you will fix it. I need perl or javascript or php expret only i have 40+ scripts people wrote earlier for this kind of work $ 30 per site. do as many as you like bid for 1 site first. Open Dns Finder Script
m looking for a longtime business-relationshop!! Also possible with a montly salary.
Please make your bid, and descripe shortly how you plan to realize the project. Important ========= BID's from people with "copy and paste" answer or comments will be ignored. I am looking for HIGHLY profesionalls (using Perl, Shell PHP and/or C), with also good communication talents. English necessary / Messenger necessary Ssh Bash Script To Edit Files
Need a bash script to edit files, so we don't have to manually edit files
Script needs to edit all index.php files and remove all code after </body> thats it! Script Installation
ace all of the MySQL Database info with your specific info. Upload. Step 12: Go to www.yourdomain.com/cgi-bin/admin.cgi (password = password) and press settings. Edit the preferences, affiliate feeds, and payments settings. You're done! _______________ I will provide you with the cpanel. I need this done in next 2 hrs. Only Bid if you can do it in next 2 hrs. Its hardly a 30 mins job for a person who knows what he is doing. Thanks Currently viewed: "Search/replace Perl or Bash script
"
|