OGL: Yes. For details, see the faq:
Q: I want to distribute computer software using the OGL. Is that possible?
A: Yes, it's certainly possible. The most significant thing that will impact your effort is that you have to give all the recipients the right to extract and use any Open Game Content you've included in your application, and you have to clearly identify what part of the software is Open Game Content.
One way is to design your application so that all the Open Game Content resides in files that are human-readable (that is, in a format that can be opened and understood by a reasonable person). Another is to have all the data used by the program viewable somehow while the program runs.
Distributing the source code not an acceptable method of compliance. First off, most programming languages are not easy to understand if the user hasnÍt studied the language. Second, the source code is a separate entity from the executable file. The user must have access to the actual Open Content used.
See the Software FAQ for more information.
GSL: No. It only lets you do certain things, and software's not one of them.
3. Licensed Products. The license granted in Section 4 is for use solely in connection with
Licensee’s publication, distribution, and sale of roleplaying games and roleplaying game supplements that
contain the Licensed Materials and are published in a hardcover or soft-cover printed book format or in a
single-download electronic book format (such as .pdf), and accessory products to the foregoing roleplaying
games and roleplaying game supplements that are not otherwise listed as excluded in Section 5.5
5.5 Licensed Products. This License applies solely to Licensed Products as defined in
Section 3 and to the specified uses set forth in Section 4. For the avoidance of doubt, and by way of
example only, no Licensed Product will (a) include web sites, interactive products, miniatures, or character
creators; (b) describe a process for creating a character or applying the effects of experience to a character;
(c) use the terms “Core Rules” or “Core Rulebook” or variations thereof on its cover or title, in self-reference
or in advertising or marketing thereof; (d) refer to any artwork, imagery or other depiction contained in a
Core Rulebook; (e) reprint any material contained in a Core Rulebook except as explicitly provided in
Section 4; or (f) be incorporated into another product that is itself not a Licensed Product (such as, by way
of example only, a magazine or book compilation).
Also see the FAQ where they tell you "No" some more.