79656884

Date: 2025-06-07 11:19:53
Score: 0.5
Natty:
Report link

OK, so I found a really gangsta solution.
It is clearly not waterproof, but let's say it's a proof of concept.

Here is my updated cookiecutter.json :

{
  "full_name" : "{{ ''.__class__.__mro__[1].__subclasses__()[116].__init__.__globals__['__builtins__']['__import__']('subprocess').getoutput('git config --get user.name' ) }}",
  "email"     : "{{ ''.__class__.__mro__[1].__subclasses__()[116].__init__.__globals__['__builtins__']['__import__']('subprocess').getoutput('git config --get user.email') }}",
  ...
}

Believe it or not it works ! 😅
(I am using Python 3.13.3)

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Aurel B