If it got you high, then yes, there is a good chance it is cannabis.

Low quality cannabis can have very bad smells and awful tastes to them, so I'm guessing by the pictures and what you describe, it is just low quality cannabis, that's all.