(a) In General.—Whoever knowingly—
(1) directly or indirectly, corruptly gives, offers, or promises anything of value to any public or private person, with intent to commit international terrorism or domestic terrorism (as those terms are defined under section 2331), to—
(2) directly or indirectly, corruptly demands, seeks, receives, accepts, or agrees to receive or accept anything of value personally or for any other person or entity in return for—
knowing that such influence will be used to commit, or plan to commit, international or domestic terrorism,
shall be fined under this title or imprisoned not more than 15 years, or both.