Benign Download

minimal-x86-64/nixos-minimal-25.05.813814.ac62194c3917-x86_64-linux/nix-store.squashfs.d/crs1ks6b3513ymkmxn8g4iivxz95gvkf-nixos-25.05.813814.ac62194c3917/nixos/pkgs/build-support/fetchtorrent

Shell command variable at a command boundaryShell recursively removes a path
SHA-256f3df96306ea69a4d3a6a90afcd27dfe30c3a9a620ef1c4b4de9c247c1da53a19

Evidence

English function-word token "the" lines 22–29
22:37… hen
23 { }
24 else
25 throw "json config for configuring fetchFromBitorrent only works with the transmission backend",
26 hash,
27 backend ? "transmission",
28 recursiveHash ? true,
29 postFetch …
Shell recursively removes a path lines 34–50
34:5… terSuccess = writeShellScript "fetch-bittorrent-done.sh" ''
35 ${postUnpack}
36 # Flatten the directory, so that only the torrent contents are in $out, not
37 # the folder name
38 shopt -s dotglob
39 mv -v $downloadedDirectory/*/* $out
40 rm -v -rf $downloadedDirectory
41 unset downloadedDirectory
42 ${postFetch}
43 kill $PPID
44 '';
45 jsonConfig = (formats.json { }).generate "jsonConfig" config;
⋯5 lines
English function-word token "and" lines 65–67
65:23… ten to the derivation, meaning it can be parsed and utilized
66 # by external tools, such as tools that may want to seed fetchtorrent calls
67 # …
Shell invokes mkdir command lines 73–84
73:22… TMP
74 export downloadedDirectory=$out/downloadedDirectory
75 mkdir -p $downloadedDirectory
76 mkdir -p $HOME/.config/transmission
77 cp ${jsonConfig} $HOME/.config/transmission/settings.json
78 function handleChild {
79 # This detects failures and logs the contents of the transmission fetch
80 find $out
81 exit 0
82 }
83 trap handleChild CHLD
84 transmission-cli --port $(shuf -n 1 -i 49152-65 …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.