be tarred with the same brush
A wolf and a jackal often went hunting together.
Once they came to a sheepfold, the walls of which were too high for them to get over.
Then the wolf stood on the back of the jackal. In this way the wolf climbed over the wall to where the sheep were.
This idiom is used to describe doing evil things in collusion with others.