View Issue Details

IDProjectCategoryView StatusLast Update
0008179Kali Linux[All Projects] Kali Package Bugpublic2023-02-20 23:35
Reportertjnull Assigned Tosteev  
Status resolvedResolutionfixed 
Product Versionkali-dev 
Target VersionFixed in Version2023.1 
Summary0008179: Random '0' file gets created in the linux file system
DescriptionSteev wanted me to submit this bug for investigation.

In the linux file system / a random file called "0" appeared on the system. The file contains 0 data

No clue how the file was created or when it got made. Tried too see if any packages created but unfortunately I got 0 results.

└─$ dpkg -S /0
dpkg-query: no path found matching pattern /0



2023-02-15 04:13

manager   ~0017506

Do you get this file "out of the box"? If so, how do you get your Kali, is is from the installer iso, or a VM image, or aonther way? Also, can you confirm that we're talking about Kali 2022.4?

Maybe this file come from a bogus shell script. It's a common pitfall in Bash that if you do something like `if [ $err > 0 ]; then ...`, in fact you're actually redirecting $err to the file '0', the correct syntax is `if [[ $err > 0 ]]`, cf. Maybe that's what creates the file /0.


2023-02-20 23:35

manager   ~0017543

This is fixed in wordlists 2023.1.2 - however, there is nothing in place to *remove* the current /0 if one exists. I didn't want to muck about in user's systems.

Issue History

Date Modified Username Field Change
2023-02-15 03:46 tjnull New Issue
2023-02-15 04:13 arnaudr Note Added: 0017506
2023-02-15 17:59 daniruiz Assigned To => steev
2023-02-15 17:59 daniruiz Status new => assigned
2023-02-20 23:35 steev Status assigned => resolved
2023-02-20 23:35 steev Resolution open => fixed
2023-02-20 23:35 steev Fixed in Version => 2023.1
2023-02-20 23:35 steev Note Added: 0017543