Skip to content

Commit

Permalink
Enhancing codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
cn1t committed Aug 5, 2024
1 parent 98a7c98 commit 58c2bd7
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 15 deletions.
2 changes: 1 addition & 1 deletion API.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ To get the whole DataBase simply run:
```sh
curl localhost:8080/
```
### Get a person Object by it's id
### Get a person Object by id
```sh
curl localhost:8080/people/:id
```
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Check the wiki for setup guide, API-docs, etc.

## Why use seekr over my current tool ?
Seekr combines note taking and OSINT in one application. Seekr can be used alongside your current tools.
Seekr is desingned with OSINT in mind and optimized for real world usecases.
Seekr is designed with OSINT in mind and optimized for real world usecases.
### Key features
- **NO** api keys required for **all** features
- Desktop interface
Expand All @@ -40,13 +40,14 @@ Seekr is desingned with OSINT in mind and optimized for real world usecases.
> **Warning**
> Seekr is a beta software and still in an early stage of development

## Getting Started - Installation
Just a quick warning, **unstable builds** may contain bugs and are **not recommended** for production use.

### Windows
Download and run the latest exe [here](https://github.com/seekr-osint/seekr/releases/latest)

Now open [the web interface](http://localhost:8569/web/) in your browser of choice.

### Windows (unstable)
Make sure to install TypeScript and Go.
To install seekr on windows simply run:
Expand Down Expand Up @@ -82,16 +83,20 @@ To run seekr on NixOS run following commands.
nix shell github:seekr-osint/seekr
seekr
```

## Feedback
We would love to hear from you. Tell us about your opinions on seekr. Where do we need to improve?...
You can do this by just opening up an issue or maybe even telling others in your blog or somewhere else about your experience.

### Contact
You can contact us at **[[email protected]](mailto:[email protected])**!

## Legal Disclaimer
This tool is intended for legitimate and lawful use only. It is provided for educational and research purposes, and should not be used for any illegal or malicious activities, including doxxing. Doxxing is the practice of researching and broadcasting private or identifying information about an individual, without their consent and can be illegal. The creators and contributors of this tool will not be held responsible for any misuse or damage caused by this tool. By using this tool, you agree to use it only for lawful purposes and to comply with all applicable laws and regulations. It is the responsibility of the user to ensure compliance with all relevant laws and regulations in the jurisdiction in which they operate. Misuse of this tool may result in criminal and/or civil prosecution.

### Contact
For legal questions contact us at **[[email protected]](mailto:[email protected])**!

## Thanks to
[![Stargazers repo roster for @seekr-osint/seekr](https://reporoster.com/stars/seekr-osint/seekr)](https://github.com/seekr-osint/seekr/stargazers)

Expand Down
1 change: 0 additions & 1 deletion api/email.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package api

import (
"log"
//"log"
"regexp"

"github.com/seekr-osint/seekr/api/functions"
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
)

// Web server content
//

//go:embed web/*
var content embed.FS

Expand Down
13 changes: 12 additions & 1 deletion up.sh
Original file line number Diff line number Diff line change
@@ -1 +1,12 @@
up() { git fetch; git checkout "$1"; go mod tidy; ./update-hash.sh ; git add flake.nix go.mod go.sum; git commit -m "updated hash"; git push; gh pr checks --watch; gh pr review --approve; gh pr merge --squash; }
up() {
git fetch
git checkout "$1"
go mod tidy
./update-hash.sh
git add flake.nix go.mod go.sum
git commit -m "updated hash"
git push
gh pr checks --watch
gh pr review --approve
gh pr merge --squash
}
2 changes: 1 addition & 1 deletion web/ts/desktop.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const bg_var = getComputedStyle(document.documentElement).getPropertyValue('[data-theme]--bg');

const channelDesktop = new BroadcastChannel("seekr-channel");
// Listen for messages on the broadcast channel

channelDesktop.addEventListener('message', (event) => {
if (event.data.type === "theme") {
const theme = event.data.theme;
Expand Down
2 changes: 0 additions & 2 deletions web/ts/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,11 @@ async function postSeekrConfig(config: SeekrConfig): Promise<string> {
}

function setValues(config: SeekrConfig): void {
// Port
const portInput = document.getElementById("port-tag") as HTMLInputElement;
if (portInput) {
portInput.value = config.server.port.toString();
}

// Port
const ipInput = document.getElementById("ip-tag") as HTMLInputElement;

if (ipInput) {
Expand Down
7 changes: 1 addition & 6 deletions web/ts/tempmail.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const channel = new BroadcastChannel("seekr-channel");

// Listen for messages on the broadcast channel
channel.addEventListener('message', (event) => {
if (event.data.type === "theme") {
const theme = event.data.theme;
Expand All @@ -15,7 +14,7 @@ const myPara = document.querySelector(".email-headline");

if (myBtn && myPara) {
myBtn.addEventListener("click", () => {
fetch("https://cors-anywhere.herokuapp.com/https://www.developermail.com/api/v1/mailbox", {
fetch("https://www.developermail.com/api/v1/mailbox", {
method: "PUT",
headers: {
"accept": "application/json"
Expand All @@ -24,17 +23,13 @@ if (myBtn && myPara) {
})
.then(response => response.json()) // Parse the response as JSON
.then(data => {
// Check if the API call was successful and there are no errors
if (data.success && data.errors === null) {
// Set the text of the paragraph tag to the name and token values
myPara.textContent = `Name: ${data.result.name}, Token: ${data.result.token}`;
} else {
// Set the text of the paragraph tag to indicate an error occurred
myPara.textContent = "An error occurred.";
}
})
.catch(error => {
// Set the text of the paragraph tag to indicate an error occurred
myPara.textContent = "An error occurred.";
console.error(error);
});
Expand Down

0 comments on commit 58c2bd7

Please sign in to comment.