--- /dev/null
+/* bsed.c - binary sed program
+ *
+ * author: hackbard
+ *
+ */
+
+#define MAX_BITS 1024
+
+void main(int argc, char *argv[]) {
+
+ FILE *file_h;
+ char temp[MAX_BITS];
+
+ if(argc<4) {
+ print("usage: %s <orig> <new> <file>\n",argv[0]);
+ return 0
+ }
+
+ file_h=fopen(argv[3],"w+");
+ if(file_h==NULL) {
+ printf("error: cant open %s for reading\n",argv[3]);
+ return 0;
+ } else {
+ printf("processing %s\n",argv[1]);
+ }
+
+ /* translate 2 bitmuster */
+
+ while(fgets(temp,MAX_BITS,file_h)) {
+ if(strstr(temp,"