Trying to delete injected code (one line) into multiple .php and .html files of a server with sed command but it seems there is a problem with sed when " and / are included in the string to be deleted.The string that needs to be deleted is <img heigth="1" width="1" border="0" src="http://imgddd.net/t.php?id=16382836"> However the last part of the string (id=########) is not constant (the number is variable) so I used the following:find /home -type f -iname index.html* -o -iname index.php* -o -iname index.html* -o -iname index**| while read FILE; do sed -i "s|<img heigth="1" width="1" border="0" rc="http:\imgddd.net*">||g" "${FILE}"; doneFor some reason it successfuly deleted the injection on .html files but NOT in .php files
i have installed ubuntu 10.10the wireless adapter is BCM4312when i write "ifconfig" it gives me eth1 instead of wlan0 or wlbut the wirless is working fine with me still have the problem that when i try to load airodump-ng eth1 it gives me the follwoing message:ioctl(SIOCSIWMODE) failed: Invalid argumentARP linktype is set to 1 (Ethernet) - expected ARPHRD_IEEE80211,ARPHRD_IEEE80211_FULL or ARPHRD_IEEE80211_PRISM instead. Makesure RFMON is enabled: run 'airmon-ng start eth1 <#>'Sysfs injection support was not found either
I was trying to get the status of memory usage and disk usage using sigar in windows and ubuntu. done this in windows by just copying the sigar library into jdk library. But i was unable to do so in ubuntu. I've copied the library to java-6-sun library but still can't run the program.
Is there any way to monitor one process' CPU usage and RAM usage over time on Linux? I am trying to change to a cheaper VPS and need to work out what level of CPU and RAM I need!
I am facing problem on my Linux server, those runing php sites, most of the time hacker upload file in my website and take the control, and hack the sites, shoot the thousands of mail etc
I am trying to implement a new project on Artificial Neural Network based Web Application Firewall for SQL Injection.which language is better for this ??i think to implement it as free and opensource linux based or cross platform project??i need some links to get a good source code of firewall for this.also give some links to this topic??anybody interested with this topic pls contact me to deepakbabu123@gmail.com
I'm trying to implement this method to block php injection attack using fail2ban: here it is, however I'm not sure it applies to Ubuntu. You see, there's this filter that must be added to the fail2ban jail file:
HTML Code: [php-url-fopen] enabled = true port = http,https filter = php-url-fopen
enable packet injection on ubuntu. My card was perfectly running fine(though monitor mode and packet injection not working).I had got bcm-sta wireless drivers installed.
When i run lspci --nn command, i found out my driver to be as below::
Code: Network controller [0280]: Broadcom Corporation Device [14e4:4727] (rev 01) when i run " airmon-ng " it displays
[Code].....
I need to get packet injection working desperately. Also , do i need to patch my drivers or something like that?
Our client-accounts were recently injected with the following script and since there are too many files that were injected (only index.php and index.html) how this script can be traced with a search command and removed in all files found.
I'm running into a problem where my system is running out of disk space on the root partition, but I can't figure out where the runaway usage is. I've had a stable system for a couple of years now, and it just ran out of space. I cleaned some files up to get the system workable again, but can't find the big usage area, and I'm getting conflicting results.For example, when I do a df it says I'm using 44GB out of 58 GB:
Code: [root@Zion ~]# df -h Filesystem Size Used Avail Use% Mounted on
I was playing around with Aircrack the other night, and trying to utilise the patches that would allow packet injection, but it wasn't working for me, so I rebooted. After that, though, my wireless card seems to have gone completely haywire. It doesn't show up at all in iwconfig. Before, I had 4 entries: lo, eth0, irda0, and eth1, which was the wireless. Now, only the first three show up. This is what it comes up as under lspci:
Code: 04:00.0 Network controller: Broadcom Corporation BCM4311 802.11b/g WLAN (rev 01) I've tried a number of solutions I've found online, including doing a cold boot, reinstalling the driver (Broadcom STA) and starting up from a cold boot, and am now trying this approach. Nothing has worked, so far. I'm getting really desperate. I need my wireless working for university, which starts shortly, and I might even switch back to Windoze if there's no feasible solution.
i would really like to know how to patch a wireless card driver so that i can start injection in aircrack for example let's say we have an "Atheros AR5007EG" do you know where to find the driver patch for ubuntu and how to patch it ?
currently I'm fiddling around with mod_security for apache2 configurations on CentOS boxes, right now in a test environment first (i.e. separate non production box).CentOS includes the mod_security "Core Rule Set" by Breach Security Inc, the devs behind that module.So far all's running mostly, logs/auditlogs etc.For simple testing, I made a small php form as following:
Code: <?php $link = mysql_connect("localhost",$user,$pass); //un/pw obfuscated for forum post
I want to do some pen-testing using aircrack-ng on my local network and currently the only wireless adapter I have is the WNA 1100 netgear adapter. I am using the ath9k_htc driver.
I am sure that all of us know the result of top command in linux. i want to get the value that the top command return as CPU usage, memory usage. so how do i do(programming relation)?
I've come across a really strange issue with one of my RHEL servers. The "free" command shows that 7019 MB of memory are actually in use by my system, but when summing up the actual usage (or even virtual usage like the example below) it doesn't add up - the sum is far less than what is reported by "free":
SO after using Testdisk to recover some images, the folders recup_dir.1 & 2 have saved in my FIle System area, when ever I try to press delete noting happens. I have also tried rm -f -rrm -f -fIt still dont delete, I have also deleted my user account and made a new one, but the files are still there.
I am trying to use an old box as backup server. I have tried a couple of possibilities along the lines of:
Quote:
rsync -a --delete --progress --log-file=/home/$USER/info.txt -e ssh /home /etc root@192.168.0.106:/mnt/back
The problem is it does not delete files that has been removed from my local system? I run the command as root on the local system.
(I realize I should properly not ssh into the server as the server's root but I'm having trouble with the permissions and I want to make sure everything else works before messing around with it)
I am currently writing a JAVA script to monitor certain unix processes through JConsole. Upon having lots of trouble with runtime.exec, i decided to bypass the top/ps command call and just get the information straight from /proc/*pid*/whatever.Now i can pull back any information from any of the files I want, and the current way i determine the CPU usage of a process is as follows:Add the UTime and STime of that process from /proc/pid/stat then divide my pidCpu by UTime + STime + NTime from /proc/stat, then multiply that by 100, should give me the % cpu usage a process is using, right?Theory being if I get the jiffies assigned to my process, I can divide that by the total jiffies the cpu assigns.
However, my results seem to vary from the ones gathered from top and ps. What am I doing wrong?
I wonder to know the command or the procedure to get the overall CPU utilisation in linux. I have used top, iostat, mpstat but the outputs are not the way i needed. Is it possible to get the output like...
I am running Slackware 13.0. I am aware of free -m, vmstat, top, etc. However, none of these programs display how much ram each program is using. Is there a program that displays how much ram each program is using? I run a headless so I'd need a program that runs in CLI.
I know that top command shows %MEM (only two programs were using 0.1%MEM) but after running free -m I only have a total of 400 MB ram left out of my 1.5 GB of ram. Where is all that lost ram?
my linux bos red hat Ent 5.0 is reporting CPU usage 100% for the service/agent cimserver.basically is slows down my system and I have to kill it so my system is OK again.my question is Can I set the CPU usage for this service? I mean can I set it to use only 4% or 10% of my CPU? or any other way to troubleshoot this 100% CPU usage. Since I've uninstalled and reinstall the agent and same issue.is it possible to set the CPU Usage?