Green’s Dictionary of Slang

shank-painter n.

[SE shank, a leg + naut. painter, a boat’s rope]

[early 19C] a leg.