AutoPentester: An LLM Agent-based Framework for Automated Pentesting