Ubuntu Security :: Included The Output Of Both "un-escaped" And "escaped" Input To Show The Importance?
Feb 14, 2010
quite some time back, when I was learning about MySQL injections it has sorta been drilled into me to use mysql_real_escape_string when dealing with input from users.[URL]..I'm running a standard LAMP installation, with no alterations to the defaults.
On the site in question, I do have this all set up, however, as part of a tutorial series on FULLTEXT, I've included the output of both "un-escaped" and "escaped" input, to show the importance.
[Code]...
View 2 Replies
ADVERTISEMENT
May 10, 2011
I was looking at this file that was padded with 0's in hexdump. I noticed the 0's were escaped so they would be literal 0's. Why is this?
View 1 Replies
View Related
Jul 28, 2010
What i want to do is create multiple informix sql statements & later run them via a bash script.
Here is what i have so far (this works) but is meant to be run from a cron job so it only does one day at a time:
echo "
update hst`date --date='yesterday' +%m%d%y`
set x = 'GARP'
where y in ('CRE', 'LAC', 'SRL', 'JAG', 'JNM', 'BIM')
and appl = '';
[Code].....
The problem here is it doesnt want to read the variable $x correctly so the statement fails.
View 1 Replies
View Related
Apr 15, 2010
I created a file holding all the md5 values of my files to find duplicates as follows: find /mnt -type f -print0 | xargs -0 md5sum >> ~/home.md5
I then tried to find duplicates and do ls -l on the result in such way: cat ~/home.md5 | awk '{print $1}' | sort | uniq -c | sort -nr | awk '{print $2}' | head -n 10 > ~/top10.md5
Now I attempted to do an ls -l on the files using the command: for i in `cat ~/top10.md5`;do grep $i ~/home.md5 | while read checksum path; do echo "`echo $(printf '%q' "${path}")`" | xargs ls -l; done; done
This works well on most files, however it does not work when filenames have special letters in them that gets escaped such letters with accent etc. These become for examle 303.
Are there any ways I can use the escaped 303 strings with path names, or any better way I can do this?
View 2 Replies
View Related
Dec 25, 2010
I just wanted to make sure the latest mdadm hasn't escaped the attention of the Slackware gurus for -current. I bet it hasn't I'm basically in the same situation as described here:[URL]...
View 2 Replies
View Related
May 23, 2010
Can "locate" or "updatedb" be set to print file names with white space properly escaped? For example, I want it to print, "/home/USER/My Files" and not, "/home/USER/My Files". I've googled around, read the man pages, checked the forum, and I'm still stuck.
View 2 Replies
View Related
Dec 8, 2009
For instance I have: openssh-4.3p2-36.el5_4.2
But I know that is 4.4.x. rpm -? openssh
View 2 Replies
View Related
Jan 7, 2011
What does this command mean? Is this some sort of a pipe where output of one program goes to input of another?
Code:
View 4 Replies
View Related
Nov 19, 2010
Today went from jaunty to koala then to lucid. The package manager doesnt work nothing works in terminal for apt-get or anything getting the message ---->
View 1 Replies
View Related
Jun 25, 2011
Quote:Error benchmarking: helper exited with exit code 1: Error reading 27099136 bytes at 2509258752 from /dev/sda: Input/output errorthis issue is also preventing me from making a copy/backup of the partition with gpartedwhich i decided i should do since i had a scare when booting todayunable to mount / i said fix itthen it said /var was not readyi waited it became readyi am running 10.04.2 would upgrading the kernel to get trim support fix it?
Code:
sudo fsck -t ext4 /dev/sda1
fsck from util-linux-ng 2.17.2
e2fsck 1.41.14 (22-Dec-2010)
System: clean, 247383/983040 files, 1394162/3907803 blocks
Solution: drive is under warranty and it needs to be used this is not software problem
View 5 Replies
View Related
Jun 9, 2010
I have dir in my HD that is very important to me,but when I try cd commad to go in the dirI got this message:cannot access `./Lab': Input/output erroralso when use ls to view the currently dir and the other dir's also I got this message:"ls: cannot access Lab: Input/output errorLab"with touch:touch: cannot touch `Lab': Input/output errorwith mkdir:mkdir: cannot create directory `Lab': Input/output error
View 3 Replies
View Related
Jan 23, 2010
At the time of INSTALLATION im getting errors about not able open Input/output files... and some other errors... im using SATA 80GB HDD... i have already installed XP....
the sad thing is two months back i installed UBUNTU ..and i have worked on it...
but unfortunately i formatted my entire system and now i got this problem...
View 2 Replies
View Related
Feb 28, 2010
I am attempting to connect a bluetooth headset to a Telex Intercom System. I can connect my bluetooth headset to Ubuntu and use the microphone and the speaker perfectly. There are no problems with the Line-In or the Line-Out.
Is there any way to connect the BT-Microphone to the Line-Out while connecting the Line-In to the BT-Speaker?
View 1 Replies
View Related
Mar 10, 2010
I use the growisofs command from the terminal to do most of my burning. Mostly because i burn almost the exact same type of file every time so its pretty easy to set up. I've done this dozens of times and never once had a problem before. I loved it because it was so much simpler than doing this in windows where i would need to install a few extra programs and codecs. That was up until today where it started failing every single time i tried to burn something.
For some reason every time i try to burn a disc it gives me this error message:
Code:
I'm really at a loss as to why this is happening. Every thread i found that discussed this problem was mostly focused on k3b or brasero and never really answered the question. As far as i know nothing has been updated since the last time i burned a disc a few days ago. Everything is exactly the same as it was when it worked. The only thing i could think of that might have caused this sudden failure is that i flashed the firmware of another cd drive using the same sata port that this drive is currently plugged into, but that was in windows so i dont see how it could have affected this drive.
View 1 Replies
View Related
Mar 20, 2010
Code:
ubuntu@ubuntu:~$ ls -al /etc | grep resol
ls: cannot access /etc/mtab: Input/output error
ls: cannot access /etc/resolv.conf: Input/output error
[code]....
Quote:
Code:
ls: cannot access /etc/mtab: Input/output error
I don't like the look of this at all!
View 6 Replies
View Related
May 2, 2010
The title is pretty self explanatory, I was just wondering how to overcome this error, if I can...
View 9 Replies
View Related
May 23, 2010
I'm trying to install ubuntu 10.04 on my desktop. I would like to erase my old xp completely and have only ubuntu as my OS. I boot from cd but when I install it stops at 15% and keeps giving me this error:
Input/output error during write on /dev/sda.
It won't let me retry or ignore and when I cancel the installation continues until I get another error.
View 2 Replies
View Related
Jul 23, 2010
I installed Ubuntu 10.04 two days ago and was using my 1tb passport external HDD with it to download and store files. However today whenever i try and copy/cut and past to the HDD i get this error message..
Error opening file '/media/My Passport/test.avi': Input/output error This is obviously very fustrating and i want to stay with Linux but i do need to fix this problem else im afraid im going to have to back to awful windows.
View 4 Replies
View Related
Aug 19, 2010
I'm having some trouble installing Ubuntu 10.04. What I am trying to do is completely wipe all things on my computer and install Ubuntu. I have followed the instructions from Ubuntu's homepage on how to download the ISO, and ran their program to put it onto a portable USB device. Through doing all of this, I receive no error messages. Then it tells me to change the BIOS to boot from USB, so I did that. I've successfully accessed the install menu and filled in all the information requested (i.e. computer name, account name, etc.). I select that I want to delete the current partitions and use only Ubuntu. It starts to install, but at 67%, while copying files, I receive an error.
This error is:
The installer encountered an error copying files to the hard disk:
[Errno 5] Input/output error
This is often due to a faulty CD/DVD disk or drive, or a faulty hard disk. It may help to clean the CD/DVD, to burn the CD/DVD at a lower speed, to clean the CD/DVD drive lens (cleaning kits are often available from electronics suppliers), to check whether the hard disk is old and in need of replacement, or to move the system to a cooler environment.
View 9 Replies
View Related
Sep 8, 2010
What i am trying to acomplish is this
Code:
I have found a few guides that were to accomplish this, but they seem outdated as options they call for are not available to me.
View 4 Replies
View Related
Oct 2, 2010
I got interested in it when trying to play Windows games on my Mac. I've tried WINE and didn't get anywhere fast, but thats another thread for a different forum.
For now I'd like to try Ubuntu. I downloaded the ISO and burned it to a DVD and a CD.
When booting up my computer I get this message:
I have no idea what this means. I've tried to find answers on this forum with no luck.
The computer in question:
iMac8,1
Intel Core 2 Duo
3.06 GHz
4GB Memory
NVIDIA GeForce 8800 GS (512 MB)
MacOS 10.5.8
View 3 Replies
View Related
Oct 18, 2010
i tried to rip a dvd last night and it got 98% done then said "Data could not be written (Input/output error)"here is the error log from brasero
Checking session consistency (brasero_burn_check_session_consistency brasero-burn.c:1744)
BraseroDvdcss called brasero_job_get_action
BraseroDvdcss called brasero_job_get_action
[code]....
View 2 Replies
View Related
Nov 11, 2010
I just received a 1TB external(Western Digital) hard drive(NTFS) for backup purposes. I'm using an Ubuntu Live CD, and an external hard drive dock. I am transferring over esata and am receiving the error:
Code:
Cannot open file: input/output error
Seems strange that it said "open". At any rate only about 60 of the 200+ GB were able to be transferred over...this won't do. I have tried to copy via CLI using
Code:
cp -r
and received the same issue. For clarification I am attempting to transfer from a mounted partition onto the mounted external.
View 2 Replies
View Related
May 1, 2011
Asus EEEPC 1215P
Intel Atom N550 1.5 GHz
2 GB DDR3
Ubuntu 10.10
Maverick Meerkat
Desktop Edition
Tried changing BIOS setting...
SATA Run Mode configuration
Enhanced AHCI
Enhanced IDE
Compatibility
Disabled
non of them worked
View 1 Replies
View Related
Jun 9, 2011
For some reason my soundcard is recording every playback sound. This become apparent when I was trying to make a Skype call and the other people couldn't hear me. I checked my sound preferences and noted that the input was recording what they say (they could hear an echo). Also if I played back anything it would redirect to them. This has never happened to me and I've made a lot of calls in the past.
I tested with Audacity and it records fine, but when I play back the recording, it redirects to the input channel so it's not a problem with Skype. (my soundcard is a VIA VT1708B 8-Ch). Somewhere I read that the output of aplay -l is useful.
Here it is:
View 9 Replies
View Related
Jun 11, 2011
I'm using FFADO on JACK in order to use my firewire device (M-Audio Profire 610) and I seem to have the opposite issue as others who have similar problems. Everything starts up fine, and I can record audio into Ardour using my inputs, but I can't get any output from any of my 8 line outs.
I've checked the connections using QjackCtl, and I tried to route audio from another program (Audacious) but I can't seem to pull audio out of the device (or the computer won't send my device audio?).
View 1 Replies
View Related
Jun 12, 2011
I used to be able to use Skype without a problem. I must have played with something as it now doesn't allow me to both use a microphone and external speakers at the same time.I go into sound setting and I am able to test the microphone (works) but then the speakers don't show, if I reverse the tests then the opposite happens.
View 1 Replies
View Related
Jul 28, 2011
For some reason on any application that uses sound, but doesn't allow me to specify the input/output audio devices I don't get anything. I want all audio to go to my USB Headset, and not the onboard soundcard. To start off with, here's alsamixer: Here's a screenshot from Mumble (voice chat) that shows that I've set the USB headset device in there, and it works 100% fine on Mumble.
[Code]...
As you can see from the alsa-base.conf above I've tried specifying snd_usb_audio as the default device, but it's not working.
View 5 Replies
View Related
Apr 8, 2010
I got a new HDD like a Storage on my Ubuntu ,it is formated as ext3 and i am able to mount it ,but sometimes while downloading from FTP ,when the session broke Ubuntu crates some ./afternature.mp4 Input/output error ,which i can see on "ls -l" ,and that causes great troubles to me ,because i can not copy or write on that disk another file with the same one which is created like this ,these error are gone only if i format the hdd .
My mounting command is "mount /dev/hdb3 /tmp/hd ext3 rw 0 0" So is that possible to remove these error without formatting the disk . PS:I did a lot of search for that error ,on unix forums also here but i didn`t find a concrete answer ,i found a thread which is for that case but removing with inode is impossible because on ls -l i`m not receiving the inode .
View 5 Replies
View Related
Jul 31, 2010
whenever I copy (or move) files from one place on my hd to another One or two of them dont copy, and I get an error similar to " There was an error copying the file into [location]. Show more details> Error splicing file: Input/output error. The file is always an .avi file and always between 600MB and 1.4GB in size, how can I fix this problem?
View 9 Replies
View Related