Wordlist line number

Is there any way to know wordlist line number
like a example

A
B
C
D
E

when A will run that function output will be 1
B output will be 2

E output will be 5

The only way to do this right now is to use global variables to keep a counter and increase it at every successful check.

2 Likes