Brute forcing using pthread