Skip to content

Commit

Permalink
Merge pull request #116 from joernio/gabe/integrate-typos
Browse files Browse the repository at this point in the history
Tidy up `/integrate`
  • Loading branch information
itsacoderepo authored Nov 1, 2024
2 parents aa22a68 + 6a9888c commit 8aeabe9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
3 changes: 2 additions & 1 deletion docs.joern.io/content/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ weight: 20

Pre-built binaries of the joern-cli are available at:

https://github.com/ShiftLeftSecurity/joern/releases/
https://github.com/joernio/joern/releases/

To install the latest release, simply execute the following

Expand Down Expand Up @@ -109,3 +109,4 @@ joern> importCpg("linux-full.odb")
...
res1: Option[Cpg] = Some(value = Cpg (Graph [47542978 nodes]))
```

5 changes: 3 additions & 2 deletions main/content/automate.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ url: "automate"
## Get Joern

{{< highlight html >}}
$ curl -L https://github.com/ShiftLeftSecurity/joern/releases/latest/download/joern-install.sh | sudo bash
$ curl -L https://github.com/joernio/joern/releases/latest/download/joern-install.sh | sudo bash
{{< /highlight >}}

## Run ```joern-scan```
Expand Down Expand Up @@ -71,4 +71,5 @@ To bundle up this query and add it to our C Scanner, we add some bells and whist
)
{{< /highlight >}}

There are many such scanners for common as well as precise cases modelled as bundles of Joern queries. They all are part of the automated ```joern-scan```
There are many such scanners for common as well as precise cases modelled as bundles of Joern queries. They all are part of the automated ```joern-scan```

17 changes: 9 additions & 8 deletions main/content/integrate.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,22 @@ title: "Integrate Joern in your project. REST APIs are there for you 🤝"
layout: "blog"
url: "integrate"
---
So you have your own DIY code anlaysis tool with a swanky UI, but you also fell in love with Joern? We understand that!
So, you have your own DIY code analysis tool with a swanky UI, but you also fell in love with Joern? We understand that!

## Get Joern
{{< highlight html >}}
$ curl -L https://github.com/ShiftLeftSecurity/joern/releases/latest/download/joern-install.sh | sudo bash
$ curl -L https://github.com/joernio/joern/releases/latest/download/joern-install.sh | sudo bash
{{< /highlight >}}

## Start Joern Server
## Start the Joern Server
{{< highlight html >}}
$ joern --server
{{< /highlight >}}
Yep, its that esay!
Yep! It's that easy!

## Integrate queries in your code
## Integrate queries into your code

Lets get the python CPG Query Language client library so we can test some integrations with Python. Don't worry, we jave a JS integration also for your glorious hipster JS UIs!
Let's get the Python CPG Query Language client library so we can test some integrations with Python. Don't worry. We also have a JavaScript integration for your gloriously hipster JS UI!
{{< highlight html >}}
$ pip install cpgqls-client
{{< /highlight >}}
Expand All @@ -33,10 +33,11 @@ query = import_code_query("/home/suchakra/Projects/test.jar", "test-app")
result = client.execute(query)
print(result['stdout'])

# execute a simple CPGQuery to list all methods in the code
# execute a simple CPG query to list all methods in the code
query = "cpg.method.name.l"
result = client.execute(query)
print(result)
{{< /highlight >}}

Thats it! For additional info, go look at some [docs](https://docs.joern.io/server/) or get a closer look at the Python client library [here](https://github.com/joernio/cpgqls-client-python) 👈
That's it! For additional information, check out the [Server documentation](https://docs.joern.io/server/) or get a closer look at the [Python client library](https://github.com/joernio/cpgqls-client-python) 👈

5 changes: 3 additions & 2 deletions main/content/query.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ url: "query"

## Get Joern
{{< highlight html >}}
$ curl -L https://github.com/ShiftLeftSecurity/joern/releases/latest/download/joern-install.sh | sudo bash
$ curl -L https://github.com/joernio/joern/releases/latest/download/joern-install.sh | sudo bash
{{< /highlight >}}

## Fire up Joern Shell 🔥
Expand Down Expand Up @@ -91,4 +91,5 @@ Nice! We found the call site. We can now try to find where its located in code
joern>
{{< /highlight >}}

For more queries, head over to https://queries.joern.io
For more queries, head over to https://queries.joern.io

0 comments on commit 8aeabe9

Please sign in to comment.