or possibly something like:
```ruby
con.run_single("exploit #{mode.downcase == 'j' ? "-j" : ""}")
```