General :: SED Usage To Delete An Injection?

Apr 28, 2011

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

View 8 Replies


ADVERTISEMENT

General :: Wireless Card Has Injection Enabled?

Jun 25, 2011

I am playing around with aircrack.

And was trying to see whether my wireless card on my laptop can pass the injection test

And I end up seeing the following... does it mean my wireless card is not able to run aircrack?

root@myubuntu:/home/myubuntu# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth1 IEEE 802.11bg ESSID:"" Nickname:""

[Code].....

View 1 Replies View Related

General :: Make BCM4312 Capable With Aircrack Injection?

Mar 1, 2011

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

View 4 Replies View Related

General :: Status Of Memory Usage And Disk Usage Using Sigar In Windows And Ubuntu

Mar 15, 2010

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.

View 14 Replies View Related

General :: Unix - Monitor Average CPU Usage And RAM Usage On One Process System?

Nov 15, 2010

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!

View 2 Replies View Related

Security :: Protect Server From Url Injection?

May 20, 2010

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

View 7 Replies View Related

Ubuntu Networking :: Enable Wireless Injection?

Apr 13, 2011

How can I enable wireless injection?

[code]....

View 9 Replies View Related

Software :: Firewall For SQL Injection Using Neural Network?

Oct 8, 2010

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

View 1 Replies View Related

Ubuntu Security :: Block PHP Injection Attacks With Fail2ban

Apr 12, 2010

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

[Code]....

View 7 Replies View Related

Ubuntu :: Remove Virus/Injection From Script Files?

Aug 3, 2010

I need to remove virus/injections from hindered of files from my web server, infected due to virus/injection.

i am working on simple idea.

1. script ask pattern as input from user OR pattern as input file.

2. script ask the specific path as input OR or list of infected file to be provided to remove pattern from path/list files.

3. find awk sed to remove pattern.

is there any better way ?

I can write bash script.

View 3 Replies View Related

Ubuntu Networking :: How To Enable Packet Injection In Broadcom

Mar 18, 2011

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?

View 2 Replies View Related

Ubuntu Networking :: Patch Ipw2200 For Aircrack Injection?

Apr 29, 2011

how to patch it. but the problem is, I can't find a working download link.

View 1 Replies View Related

Security :: Remove Script Injection From .php And .html Files?

Mar 19, 2010

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.

[Code].....

View 9 Replies View Related

Fedora :: Hidden Disk Space Usage \ Can't Figure Out Where The Runaway Usage Is?

Dec 10, 2010

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

[code]....

View 5 Replies View Related

OpenSUSE Wireless :: Aircrack-NG Packet Injection For Intel3945 Does Not Work?

May 14, 2009

I have the latest version of aircrack, and the latest compat-wireless package installed. When I try to inject I get this:

linux08:/usr/local/sbin # ./aireplay-ng -9 wlan0
16:46:33 Trying broadcast probe requests...
16:46:35 No Answer...
16:46:35 Found 0 APs

I know for a fact that there are 2 AP's. This worked perfectly with my old laptop with a D-link PCMCIA card.

[Code]...

View 1 Replies View Related

Ubuntu Networking :: 9.10 / Broadcom - Utilize The Patches That Would Allow Packet Injection

Jan 30, 2010

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.

View 4 Replies View Related

Ubuntu Networking :: Pacth Wireless Card Driver To Allow Injection?

Apr 14, 2010

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 ?

View 1 Replies View Related

Security :: Mod_security With CRS Adjustments To Capture Php POST Sql Injection Attempts?

Jul 22, 2010

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

[code]...

View 1 Replies View Related

Ubuntu Security :: WNA 1100 Netgear Wireless Adapter Monitor And Injection Mode?

Mar 2, 2011

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.

View 7 Replies View Related

Red Hat / Fedora :: Get The Value Of CPU Usage - Memory Usage ?

Jan 13, 2009

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)?

View 3 Replies View Related

Server :: "free" Shows Far More Memory Usage Than Summing Up Application Usage?

Aug 6, 2010

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":

Code:

[root@server1 ~]# free -m
total used free shared buffers cached
Mem: 12011 7946 4065 0 4 23
-/+ buffers/cache: 7919 4092

[code]....

View 2 Replies View Related

Ubuntu :: Change Delete Button To Delete Instead Of Move To Trash

Apr 18, 2010

Instead of moving to trash, how can i make the delete button delete? Delete is already enabled on the right click menu.

View 7 Replies View Related

Ubuntu :: Folder Wont Delete \ Whenever Try To Press Delete Noting Happens?

May 9, 2010

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.

View 4 Replies View Related

Ubuntu :: Rsync --delete Doesn't Delete Superflous Files

Sep 25, 2010

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)

View 2 Replies View Related

General :: CPU Usage Of Process

Jul 15, 2011

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?

View 2 Replies View Related

General :: Process CPU Usage

Sep 6, 2010

If I, using sar or vmstat, found that there is a CPU load on my Linux box. How can I know the top processes consuming the CPU?

View 9 Replies View Related

General :: Check Overall Cpu Usage?

Jun 16, 2011

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...

CPU usage: .....% or something like that.

View 2 Replies View Related

General :: How To Check Ram Usage

Jan 4, 2010

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?

View 9 Replies View Related

General :: Service At 100% CPU Usage

Mar 12, 2010

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?

View 5 Replies View Related

General :: Top Command Usage ?

Aug 11, 2009

Does top command find out cpu time and process time for an interval and then calculates the process's cpu usage

eg: process time(interval 5sec)/cpu time (interval 5 sec)*100 %

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved