Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12th October 2012, 11:54 PM
figleaf Offline
Registered User
 
Join Date: Sep 2012
Location: washington, dc
Posts: 25
windows_xp_2003firefox
Dominoes in my text files

There are dominoes (rectangles with circles) in my text files that I created, revised and saved using gedit and leafpad. The dominoes replace some of the dashes in my text files - but not all of the dashes. Are they embedded web bugs or rootkits? I have been manually removing them but this is time consuming. Anyway to quickly scan for dominoes inside of text files?

Though I never save my text files as encoded, some of them become encoded. I open them, copy my text into a new text file and delete the encoded text. Sometimes, the new text file becomes encoded. How to prevent these executables? I fear that they are rootkits. I switched from LibreOffice to text editors because my word documents were becoming infected with macros. Yet, executable text files are more of a threat.

How to scan for these encoded text files? They do not have an icon that is different from a plain text file. Are they supposed to in Fedora? How to make encoded text files a different recognizable icon?

When I boot to Parted Magic live CD, the encoded text files have a blue diamond shaped icon. However, opening up numerous folders to search for blue diamonds is time consuming. How to quickly search in the search bar for encoded text?

Last edited by figleaf; 12th October 2012 at 11:59 PM.
Reply With Quote
  #2  
Old 13th October 2012, 01:19 AM
PatMcLJr's Avatar
PatMcLJr Offline
Registered User
 
Join Date: Apr 2005
Location: earth
Posts: 1,133
linuxopera
Re: Dominoes in my text files

gezzz, dunno
can you post up a link to some sample files?
might be interesting to see one of the macro infected LibreOffice files too

I'll have to dl them into a VM in case there have an executable macro or rk

I was was kinda thinking some kind of UTF problem or font issue. I get this on my debian squeeze VM with the roxterm.
__________________
x--x--x
http://www.gnu.org/philosophy/free-sw.html
Freedom is never Free.
Pat Jr.
Reply With Quote
  #3  
Old 13th October 2012, 09:39 AM
Dutchy Offline
Registered User
 
Join Date: Aug 2011
Posts: 715
linuxfirefox
Re: Dominoes in my text files

Those "dominos" are unrecognized symbols.
This probably happens because of discrepancies between the charset with which the file is encoded and the charset with which you are looking at it (eg.: iso8859-1 vs iso8895-14).
Reply With Quote
  #4  
Old 13th October 2012, 12:43 PM
Skull One's Avatar
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 584
linuxredhatmozilla
Re: Dominoes in my text files

I although think that the problem is the encoding.
For instance:
Code:
echo $'\u2014' - > test
create a text file 'test' in utf8 encoding. You can check it with the command 'file test'.

If you open the file using the wrong encoding, you will see those 'dominos':
Code:
leafpad --codeset=ASCII test
But with the good encoding, you can see the em-dash and the dash:
Code:
leafpad --codeset=utf8 test
So, could you check what is the current encoding of your file (output of 'file <your file>' for instance)?
__________________
:confused:
Reply With Quote
  #5  
Old 13th October 2012, 07:13 PM
figleaf Offline
Registered User
 
Join Date: Sep 2012
Location: washington, dc
Posts: 25
linuxfirefox
Re: Dominoes in my text files

PatMcLJr requested that I post up a link to some sample files? This forum does not offer the option to attach files. How do I post a link?

Skull requested that I check the text file with the command 'file test'. How do I do this? I typed file test and then the name of a file on my desktop. Error message: "bash: test: too many arguments"
Reply With Quote
  #6  
Old 13th October 2012, 07:21 PM
Skull One's Avatar
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 584
linuxredhatmozilla
Re: Dominoes in my text files

Quote:
I typed file test and then the name of a file on my desktop. Error message: "bash: test: too many arguments"
No, it is 'file <the file to check>'.
In the example above, a file named 'test' was created.
__________________
:confused:
Reply With Quote
  #7  
Old 13th October 2012, 07:28 PM
Dan's Avatar
Dan Offline
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,324
linuxfirefox
Re: Dominoes in my text files

Hmmmm.

Probably best to use fully copy-&-paste code examples here, folks.
__________________
Signature Links | New Posts | Who's on the forums (right now) |

© ® ™ № ¿
Reply With Quote
  #8  
Old 13th October 2012, 07:33 PM
figleaf Offline
Registered User
 
Join Date: Sep 2012
Location: washington, dc
Posts: 25
linuxfirefox
Re: Dominoes in my text files

I created a text file titled "test" on my desktop and saved it as UTF-8 which is the default setting for gedit.

03:01] user@pc ~ $ file test
test: ERROR: cannot open `test' (No such file or directory)

I then put parentheses around the name of the file.

[03:01] user@pc ~ $ file <test>
bash: syntax error near unexpected token `newline'

How to correctly enter the command?
Reply With Quote
  #9  
Old 13th October 2012, 07:35 PM
Dan's Avatar
Dan Offline
Administrator
 
Join Date: Jun 2006
Location: Paris, TX
Posts: 22,324
linuxfirefox
Re: Dominoes in my text files

lala4yaya: One more post like that and you'll be sent to your room without supper. <....>
__________________
Signature Links | New Posts | Who's on the forums (right now) |

© ® ™ № ¿
Reply With Quote
  #10  
Old 13th October 2012, 07:56 PM
Skull One's Avatar
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 584
linuxredhatmozilla
Re: Dominoes in my text files

Quote:
Originally Posted by figleaf View Post
I created a text file titled "test" on my desktop and saved it as UTF-8 which is the default setting for gedit.

03:01] user@pc ~ $ file test
test: ERROR: cannot open `test' (No such file or directory)

I then put parentheses around the name of the file.

[03:01] user@pc ~ $ file <test>
bash: syntax error near unexpected token `newline'

How to correctly enter the command?
You have to write the location of your file.
I think it will be a good idea to add an extension .txt to the name to avoid confusion.
If it is on your desktop:
Code:
file ~/Desktop/test.txt
If it is in your home, it is easier:
Code:
file ~/test.txt

Edit: another way is to change to the directory containing the file, for instance for the desktop
Code:
cd ~/Desktop
file test.txt
__________________
:confused:

Last edited by Skull One; 13th October 2012 at 07:58 PM.
Reply With Quote
  #11  
Old 13th October 2012, 08:31 PM
figleaf Offline
Registered User
 
Join Date: Sep 2012
Location: washington, dc
Posts: 25
linuxfirefox
Enormous rootkit!

I have Fedora 17 GNOME installed on my Asus 1015PX. *On October 8, 2012, I copied my medical files from my HP flashdrive to my 8 GB Mcro SD card. The next day, I opened the files on my micro SD card. My text files and PDF files inside of five folders did not get copied.

Instead, the five folders have numerous encoded text files with dominoes, numbers, letters and wierd characters next to the encoded text files. When I click on one of the encoded text files, the whole string of characters come up. Properties is unknown (application/octet-stream).

The Doctors 2012 folder also has one blue folder. Properties of the one blue folder:

Type: folder (inode/directory)
Contents: 215 items, totalling 58.1 GB

Inside of the one blue folder are three blue folders, numerous text files with dominoes and four brown folders. Property of brown folders is Type: AR archive (application/x-archive). One brown folder has size 6.6 MB The brown folders are labelled: d.a., e.a., n.a. and q.a.

d.a. is 2.4 MB
e.a. is 1.7 GB (extremely large!)
n.a. is 41.4 MB
q.a. Is 6.6. MB.

Properties of the first blue folder inside the one blue folder:
Type: folder (inode/directory)
Content: four items totalling 7.5 GB

Properties of the second blue folder inside the one blue folder:
Type: folder (inode/directory)
Content: four items totalling 7.5 GB

Properties of the third blue folder inside the one blue folder:
Type: folder (inode/directory)
Content: four items totalling 7.5 GB

I cannot copy the folders onto my desktop. I copied and pasted the Doctors 2012 folder into the terminal. Only the title of the folder was copied: “ file:///run/media/user/76D7-366D/Documents%20Oct%2011,%202012/Medical%20&%20Dental%20Records/Doctors%202012”

I tried copying Doctors 2011 folder into my Documents on my harddrive. Error message:
Error when getting information for file '/run/media/user/76D7-366D/Documents Oct 11, 2012/Medical & Dental Records/Doctors 2011/#####0j#': Input/output error.”
The error message contained six dominoes. When I copied the error message into this word document the dominoes turned into #.

I copied and pasted Doctors 2011 folder into the terminal: file:///run/media/user/76D7-366D/Documents%20Oct%2011,%202012/Medical%20&%20Dental%20Records/Doctors%202011

Properties of Doctors 2011 folder:
Type: folder (inode/directory)
Content: 106 items, totalling 48.5 GB

Properties of Doctors 2010 folder:
Type: folder (inode/directory)
Content: 56 items, totalling 31.2 GB

Properties of Doctors 2009 folder:
Type: folder (inode/directory)
Content: 105 items, totalling 49.5 GB

Properties of Doctors 2008 folder:
Type: folder (inode/directory)
112 items, totalling 50.8 GB
(some contents unreadable)

The 8 GB micro SD card is inside a SD card reader. The write protection switch is on. After I clicked on some of these infected files, I typed DMESG into the terminal. The DMESG log contains numerous:

[ 2285.197394] FAT-fs (sdb1): error, invalid access to FAT (entry 0x030f0600)
[ 2285.197409] attempt to access beyond end of device
[ 2285.197418] sdb1: rw=0, want=410560088, limit=15521792
[ 2293.473925] FAT-fs (sdb1): error, fat_get_cluster: invalid cluster chain (i_pos 0)

(sdb1) is the one partition on my micro SD card. The partition is FAT32.

How can I upload some of these files?
Reply With Quote
  #12  
Old 13th October 2012, 08:36 PM
figleaf Offline
Registered User
 
Join Date: Sep 2012
Location: washington, dc
Posts: 25
linuxfirefox
Re: Dominoes in my text files

[03:02] user@pc ~ $ file ~/test.txt
/home/user/test.txt: empty
Reply With Quote
  #13  
Old 13th October 2012, 08:39 PM
glennzo's Avatar
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Posts: 13,974
linuxchrome
Re: Enormous rootkit!

If your computer has been rooted you don't want to be copying files anywhere.
__________________
Glenn
The Bassinator © ®


Laptop: Toshiba Satellite / Intel Core 2 Duo 1.73 GHz / 2GB / 160GB / Intel Mobile 945GM/GMS/GME/943/940GML Integrated Graphics
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / 1TB SATA / 500GB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #14  
Old 13th October 2012, 08:41 PM
Skull One's Avatar
Skull One Offline
Registered User
 
Join Date: Jun 2010
Location: Lost...
Posts: 584
linuxredhatmozilla
Re: Dominoes in my text files

Quote:
Originally Posted by figleaf View Post
[03:02] user@pc ~ $ file ~/test.txt
/home/user/test.txt: empty
Good! At least you know now how to use this command.
Remember that this test file is just for example.
Write something in the file and retry, or use the example above.

Do the same with _your_ file to check its encodage.

Edit: here the em-dash and dash for the example: — -
__________________
:confused:

Last edited by Skull One; 13th October 2012 at 08:46 PM.
Reply With Quote
  #15  
Old 13th October 2012, 08:57 PM
PatMcLJr's Avatar
PatMcLJr Offline
Registered User
 
Join Date: Apr 2005
Location: earth
Posts: 1,133
linuxopera
Re: Dominoes in my text files

for links to your sample files, I think you have to host them yourself, dropbox, spideoak, your web hosting, your server, google docs (maybe? dunno), something like that

wow, file ? didn't even know that was out there, lets see
man file
wow wow, that command could be very handy, seems to work on raster graphics files too, cool

Thanks Skull One
__________________
x--x--x
http://www.gnu.org/philosophy/free-sw.html
Freedom is never Free.
Pat Jr.
Reply With Quote
Reply

Tags
dominoes, enormous, files, rootkit, text

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SVG Files - no text. Adunaic Using Fedora 2 1st November 2010 04:18 PM
No thumbnails for text files in F10 piet85 Using Fedora 0 3rd January 2009 03:40 PM


Current GMT-time: 14:31 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat