basename.exe

  • File Path: C:\Users\user\AppData\Local\GitHubDesktop\app-2.5.3\resources\app\git\usr\bin\basename.exe

Hashes

Type Hash
MD5 68BEA9F69240A089A7161AA238395C50
SHA1 D6D5BC0EB419AA1F6AAABC321A574B0993D3180D
SHA256 513553D11D392D1B4E17E6BD0E3854922F5E361DD219FF0BF313F8699184A0E9
SHA384 D093A2AC3CBECDAC725A615D4391655BFDE45CA82E01A32DE34F338841DCC8A82E370FB475E3413D8A4D89959E9B8E85
SHA512 3509D90DAAD12FE366C631CF44BFB1731DC635EF7012645FBEBD6CA00115B493649975160371A7CC3E0B36108976A39787A76F0C23AF4879C3A0AE71AD4C44C9
SSDEEP 768:EYmR8IDsOkVCYrRJdLxgmViqboTHcccccccccccccccccccccccccccccccccBNl:EfZDsqYr1lWFFXhUfh

Runtime Data

Usage (stdout):

Usage: /usr/bin/basename NAME [SUFFIX]
  or:  /usr/bin/basename OPTION... NAME...
Print NAME with any leading directory components removed.
If specified, also remove a trailing SUFFIX.

Mandatory arguments to long options are mandatory for short options too.
  -a, --multiple       support multiple arguments and treat each as a NAME
  -s, --suffix=SUFFIX  remove a trailing SUFFIX; implies -a
  -z, --zero           end each output line with NUL, not newline
      --help     display this help and exit
      --version  output version information and exit

Examples:
  /usr/bin/basename /usr/bin/sort          -> "sort"
  /usr/bin/basename include/stdio.h .h     -> "stdio"
  /usr/bin/basename -s .h include/stdio.h  -> "stdio"
  /usr/bin/basename -a any/str1 any/str2   -> "str1" followed by "str2"

GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Report any translation bugs to <https://translationproject.org/team/>
Full documentation <https://www.gnu.org/software/coreutils/basename>
or available locally via: info '(coreutils) basename invocation'

Usage (stderr):

basename: unknown option -- h
Try '/usr/bin/basename --help' for more information.

Signature

  • Status: Signature verified.
  • Serial: 045D8F14A82147641722D4FAFC66BC80
  • Thumbprint: FB713A60A7FA79DFC03CB301CA05D4E8C1BDD431
  • Issuer: CN=DigiCert SHA2 Assured ID Code Signing CA, OU=www.digicert.com, O=DigiCert Inc, C=US
  • Subject: CN=”GitHub, Inc.”, O=”GitHub, Inc.”, L=San Francisco, S=California, C=US

File Metadata

  • Original Filename:
  • Product Name:
  • Company Name:
  • File Version:
  • Product Version:
  • Language:
  • Legal Copyright:

Possible Misuse

The following table contains possible examples of basename.exe being misused. While basename.exe is not inherently malicious, its legitimate functionality can be abused for malicious purposes.

Source Source File Example License
atomic-red-team T1556.002.md $passwordFilterName = (Copy-Item “#{input_dll}” -Destination “C:\Windows\System32” -PassThru).basename MIT License. © 2018 Red Canary
stockpile 316251ed-6a28-4013-812b-ddf5b5b007f8.yml for i in {1..5}; do screencapture -t png screen-$i.png; echo "$(cd "$(dirname "$1")"; pwd -P)/$(basename "screen-$i.png")"; sleep 5; done; Apache-2.0
stockpile 0582dc26-e0cf-4645-88cf-f37a02279976.yml RemoteFile="$(date '+%Y%m%d%H%M%S')-exfil-#{paw}-$(basename $LocalFile)"; Apache-2.0
stockpile 3ce95a28-25fc-4a7e-a0cd-0fdb190e2081.yml RemoteName="$(date '+%Y%m%d%H%M%S')-exfil-#{paw}-$(basename $LocalFile)"; Apache-2.0
stockpile 4a1120a5-971c-457f-bb07-60641b4723fd.yml RemoteName="$(date '+%Y%m%d%H%M%S')-exfil-#{paw}-$(basename $LocalFile)"; Apache-2.0
stockpile 5c5b0392-1daa-45e1-967c-2f361ce78849.yml $BaseName = $StageDir + "\calderachunk"; Apache-2.0
stockpile 5c5b0392-1daa-45e1-967c-2f361ce78849.yml $ChunkName = "{0}{1}" -f ($BaseName, $idx.ToString().PadLeft(3,'0')); Apache-2.0
stockpile a201bec2-a193-4b58-bf0e-57fa621da474.yml RemoteName="$(date '+%Y%m%d%H%M%S')-exfil-#{paw}-$(basename "$TempName")"; Apache-2.0
stockpile a201bec2-a193-4b58-bf0e-57fa621da474.yml echo "{\"message\":\"Committed $(basename $TempName) at: $(date)\", \"branch\":\"$GHBranch\", \"content\":\"" >/tmp/b64; Apache-2.0
stockpile ba0deadb-97ac-4a4c-aa81-21912fc90980.yml RemoteName="exfil-#{paw}-$(basename $LocalFile)"; Apache-2.0
stockpile d754878c-17dd-46dc-891c-a993f8a10336.yml RemoteName="$(date '+%Y%m%d%H%M%S')-exfil-#{paw}-$(basename $LocalFile)"; Apache-2.0
stockpile e7bf5dc7-62e4-48b2-acf8-abaf8734c19c.yml RemoteName="exfil-#{paw}-$(basename $LocalFile)"; Apache-2.0

MIT License. Copyright (c) 2020-2021 Strontic.