View Issue Details

IDProjectCategoryView StatusLast Update
0008179Kali LinuxKali Package Bugpublic2023-02-20 23:35
Reportertjnull Assigned Tosteev  
PrioritynormalSeveritytrivialReproducibilityrandom
Status resolvedResolutionfixed 
Product Versionkali-dev 
Fixed in Version2023.1 
Summary0008179: Random '0' file gets created in the linux file system
Description

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

┌──(tjnull㉿conops)-[/]
└─$ dpkg -S /0               
dpkg-query: no path found matching pattern /0

Activities

arnaudr

arnaudr

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. https://mywiki.wooledge.org/BashPitfalls#A.5B.5B_.24foo_.3E_7_.5D.5D. Maybe that's what creates the file /0.

steev

steev

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