While it might seem possible to get an H1B visa stamp without leaving the US, doing so is highly risky and could have serious consequences.
Here's why:
It's likely illegal. US immigration law generally requires in-person interviews/dropbox in the country of residence for visa applications...