Cracking a truncated hash of type sha256(salt+pw+salt)

I’m trying to crack a password, whose hash was formed by first concatenating a known salt, the password and and another known salt, then applying sha256 and then truncating that to 32 characters. So:

truncate(sha256(salt1 + pw + salt2)

How can I use JTR for example to help solve this?