Using Find Command With Regex To Find All Number-only Filenames
Oct 15, 2007
how can i do a search for all files (probs using regex) of files consisting purely of numbers?
for e.g. find:
53243.php
24353.php
24098.php
(always have 5 numbers).
seems one of my accounts has had some script run which generated a bunch of these in various subfolders, and the php file basically does a callback to www3.rssnews.ws and www3.xmldata.info, which seem to be some sort of spyware servers.
i am trying hard to understand how everything works, i just finished installing my CentOS 5.2 OS and need to install + Apache + MySQL + PHP/Perl.
Also i downloaded the apache file and tried to insatll it but it has to be done by giving a command via Bash shell for wht i understood, so i downloaded bash shell file. How and where do i enter the commands for installing these applications?
I can't seem to figure out why this is not working. I want to cd into a directory and only compress certain files. However, what I end up with is a file called ..tgz (I am not sure why it is adding that other dot).
I have a CentOS web server at my company. It's dual opteron. That server also acts like a router and I have about 5 computer are connected to that router. My web server has been slowed and can i find out who is using my bw ?. Those 5 computers has only local ips (10.10.0.x).
that my website is just for me, no one else know that website.
Someone posted some code similar to below, I made modifications or two after trying to detect PHP "nobody" users, after dumping a few printenv I found PHP exports PWD when calling an external program such sendmail. Basically the PWD will show the user directory that is coming from, which is enough to detect who is sending SPAM even as nobody! It's not 100% secure in that they could wipe /var/log/formmail but I don't imagine any spam will notice the logger, they presume any cPanel server (or other CP for that matter) is the same.
mv /usr/sbin/sendmail /usr/sbin/sendmail2 pico /usr/bin/sendmail (paste the below code into it) chmod +x /usr/bin/sendmail echo > /var/log/formmail chmod 777 /var/log/formail
#!/usr/local/bin/perl
# use strict; use Env; my $date = `date`; chomp $date; open (INFO, ">>/var/log/formmail.log") || die "Failed to open file ::$!"; my $uid = $>; my @info = getpwuid($uid); if($REMOTE_ADDR) { print INFO "$date - $REMOTE_ADDR ran $SCRIPT_NAME at $SERVER_NAME"; } else {
also,i m looking for a specific cron right now (xbt_cron).once i find it ,what command do i use to run it manually.its supposed to run by itself..i just moved to a new server last week and now its stopped working.
I tried searching for it on google but couldn't find any server company offering VPS using Litespeed instead of Apache. Yes, I know that Apache could be optimized, but would like to try a VPS or dedicated server with Litespeed, just for testing and learning to use and troubleshoot Litespeed. Does anybody here know of a supplier? I would need less than 10 gigs, 250+ Ram as well as cPanel.
I run a site that does a lot of transfers AND uses a lot of CPU resources. I think I would like to get two different hosting plans to deal with these different patterns of usage, but where can I find a good host offering lots of bandwidth that is content to have it actually used? I've been with DreamHost for a while but they don't allow "data archiving" or whatever (and I have arguments against their claims but it's neither here nor there). So, really, where the heck can a guy find a good host offering plenty of space and bandwidth? Keep in mind I need pretty much no CPU power with such a plan; the web server can be stone cold stupid for all I care, as I can just get a VPS to run the CPU-intensive part of my site!
If I have PID 1122 of apche httpd and using 99% CPU. How can I find the crosponding web site name which is utilizing that much CPU so I can the suspend it.
Code: root@server [~]# service exim restart Shutting down clamd: [ OK ] Shutting down exim: [ OK ] Shutting down antirelayd: [FAILED] Shutting down spamd: [ OK ] Starting clamd: [ OK ] Starting exim-26: [ OK ] Starting exim: [ OK ] Starting exim-smtps: [ OK ] Starting antirelayd: Cannot find the maillog at /usr/sbin/antirelayd line 26. [FAILED] Starting spamd: [ OK ]
Assuming that one was to get a local office in a town, how would someone find building or area that had a high availbility of fiber nearby, but was not a datacenter? Are their fiber maps for each big city? Does anyone have fiber maps for Houston, Texas? I would be interested in seeing these maps if possible.
I can't find wget on a hosting. SSH command find / -name wget returns with nothing, however wget works properly on a hosting, what could the problem be?
Some of our servers are complaining that they can't access the website. How can we check the blocked IPs using IP tables rules? Are there any special command to check?
Just got alerted that my server is being used to send spam. Here is the information the datacenter gave me:
[information .....]
NOTE: I changed the real domain name and IP only.
Is there an expert who can help me decipher this? How do I find the culprit? My provider is threatening to shut me down and sink all my clients with the ship!
I am running the latest WHM and cpanel server, fyi.
Im trying to find the most reliable webhoster on the wed. Im looking to start a business where i can offer regular hosting as well as reseller accounts. Im looking for a good server with a low price.
I have a web blog that shows promise of growing pretty big soon! This is a vbulletin whith chatbox and arcade games. The forum is for gamers and game modification talk. I want to keep my features such as in forum mp3 player for streaming music. I host no files everything is linked from outside sources. Even photos are linked from photo hosts. I forsee about 20-30 members on at all time browsing and chatting in chatbox. Playing in the online arcade!
I have no idea how much bandwidth all this will use up. I do know that 20-40 gig of space should be quite enough but as always I want all I can get. As far as bandwidth I have no idea what all those features will eat up.
I have looked at fatcow.com and talked to them they said their unlimited is this 300gig space 3000 gig bandwidth and they do not keep up with msql databases. I looked on BBB and they have an A+ record if compared to hostgator they have unsatifatory! The only problem is they are yearly contract only. I do not trust this! I also have to let them re-bill me at end of year and this gives them access to my account. The payment options are check,paybal, or credit.
I updated to make my domain also be nameservers ns1 and ns2 with ip's tied to them. How do I know when the nameservers are working and ok to use?
Is there something physical I can do other than switching my domain to point to it? I really dont want to do that cause then my site could be down while it is still propogating.