Skip to content

Instantly share code, notes, and snippets.

View Atom1cByte's full-sized avatar

AtomicByte Atom1cByte

View GitHub Profile
@Atom1cByte
Atom1cByte / ollamapoc3.html
Created July 16, 2025 11:13
model injection ollama final poc
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ollama Pull Model</title>
<style>
body { font-family: sans-serif; margin: 2em; }
#result { margin-top: 1em; white-space: pre-wrap; }
button { margin-top: 1em; }
</style>
@Atom1cByte
Atom1cByte / ollamadel.html
Created July 15, 2025 13:45
ollama vuln poc
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ollama Model List</title>
<style>
body { font-family: sans-serif; margin: 2em; }
#models { margin-top: 1em; }
.error { color: red; }
</style>
@Atom1cByte
Atom1cByte / poc.html
Created July 11, 2025 14:28
Ollama CSRF PoC
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ollama Chat</title>
<style>
body { font-family: sans-serif; background: #f0f0f0; }
#chat { max-width: 500px; margin: 40px auto; background: #fff; padding: 10px; border-radius: 6px; }
#log { min-height: 100px; margin-bottom: 10px; }
input { width: 70%; padding: 6px; }
@Atom1cByte
Atom1cByte / thing.ps1
Created June 19, 2025 13:19
get raw content in pwsh
$response = Invoke-WebRequest -Method Post -Uri [all the other stuff here]
# If response.Content is byte array:
$decoded = [System.Text.Encoding]::UTF8.GetString($response.RawContentStream.ToArray())
Write-Output $decoded
@Atom1cByte
Atom1cByte / gist:3301291a94cb3f6acbe44401c3d51a7c
Created June 12, 2025 07:57
quick someliner to truncate json with jq
jq 'map(
if type == "array" then
"[" + (.[0:5] | map(tostring) | join(", ")) + (if length > 5 then ", ..." else "" end) + "] (array, len=" + (length|tostring) + ")"
elif type == "object" then
"{ " + (to_entries[0:5] | map("\(.key): \(.value|tostring)") | join(", ")) + (if (to_entries | length) > 5 then ", ..." else "" end) + " } (object, keys=" + (keys|length|tostring) + ")"
else
(. | tostring) + " (" + (type) + ")"
end
)' file.json