Permalink
Browse files

just a little taste

  • Loading branch information...
1 parent 1117499 commit 52aa341801c6f38e56c20d699e0e0c9908722059 @posixninja posixninja committed Nov 6, 2010
Showing with 43 additions and 20 deletions.
  1. +24 −1 README
  2. +2 −2 common.h
  3. +7 −7 injectpois0n.c
  4. +10 −10 libpois0n.h → syringe.h
View
25 README
@@ -1 +1,24 @@
-Coming Soon...
+/**
+ * GreenPois0n Syringe
+ * Copyright (C) 2010 Chronic-Dev Team
+ * Copyright (C) 2010 Joshua Hill
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ **/
+
+What is syringe?
+
+ Syringe is the "Injector" module from GreenPois0n. It's used for sending exploits to the device
+ and booting the device out of recovery mode, and into a jailbroken state, whether to a ramdisk
+ or to the main filesystem.
View
@@ -32,9 +32,9 @@ extern "C" {
#define info(...) printf(__VA_ARGS__)
#define error(...) fprintf(stderr, __VA_ARGS__)
-#define debug(...) if(libpois0n_debug) fprintf(stderr, __VA_ARGS__)
+#define debug(...) if(syringe_debug) fprintf(stderr, __VA_ARGS__)
-extern int libpois0n_debug;
+extern int syringe_debug;
extern irecv_client_t client;
extern irecv_device_t device;
View
@@ -18,7 +18,7 @@
**/
#include <stdio.h>
-#include "libpois0n.h"
+#include "syringe.h"
void print_progress(double progress, void* data) {
int i = 0;
@@ -46,19 +46,19 @@ void print_progress(double progress, void* data) {
}
int main(int argc, char* argv[]) {
- pois0n_init();
- pois0n_set_callback(&print_progress, NULL);
+ syringe_init();
+ syringe_set_callback(&print_progress, NULL);
info("Waiting for device to enter DFU mode\n");
- while(pois0n_is_ready()) {
+ while(syringe_is_ready()) {
sleep(1);
}
info("Found device in DFU mode\n");
- if(!pois0n_is_compatible()) {
- pois0n_inject();
+ if(!syringe_is_compatible()) {
+ syringe_inject();
}
- pois0n_exit();
+ syringe_exit();
return 0;
}
View
@@ -1,5 +1,5 @@
/**
- * GreenPois0n Syringe - libpois0n.h
+ * GreenPois0n Syringe - syringe.h
* Copyright (C) 2010 Chronic-Dev Team
* Copyright (C) 2010 Joshua Hill
*
@@ -17,23 +17,23 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
**/
-#ifndef INJECTPOIS0N_H
-#define INJECTPOIS0N_H
+#ifndef SYRINGE_H
+#define SYRINGE_H
#ifdef __cplusplus
extern "C" {
#endif
#include "common.h"
-typedef void(*pois0n_callback)(double progress, void* object);
+typedef void(*syringe_callback)(double progress, void* object);
-void pois0n_init();
-void pois0n_set_callback(pois0n_callback callback, void* object);
-int pois0n_is_ready();
-int pois0n_is_compatible();
-int pois0n_inject();
-void pois0n_exit();
+void syringe_init();
+void syringe_set_callback(syringe_callback callback, void* object);
+int syringe_is_ready();
+int syringe_is_compatible();
+int syringe_inject();
+void syringe_exit();
#ifdef __cplusplus
}

0 comments on commit 52aa341

Please sign in to comment.